Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
|
|
2 |
from src.chatbot import RestaurantChatbot
|
3 |
|
4 |
chatbot = RestaurantChatbot()
|
5 |
-
chat_history = []
|
6 |
|
7 |
def respond(user_message, history):
|
8 |
response, retrieved_docs = chatbot.answer(user_message)
|
@@ -24,8 +23,17 @@ def respond(user_message, history):
|
|
24 |
|
25 |
return bot_response
|
26 |
|
27 |
-
with gr.Blocks(
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
demo.launch()
|
|
|
2 |
from src.chatbot import RestaurantChatbot
|
3 |
|
4 |
chatbot = RestaurantChatbot()
|
|
|
5 |
|
6 |
def respond(user_message, history):
|
7 |
response, retrieved_docs = chatbot.answer(user_message)
|
|
|
23 |
|
24 |
return bot_response
|
25 |
|
26 |
+
with gr.Blocks(css="""
|
27 |
+
body, html, #root, .gradio-container {
|
28 |
+
height: 100% !important;
|
29 |
+
margin: 0 !important;
|
30 |
+
padding: 0 !important;
|
31 |
+
}
|
32 |
+
.full-height {
|
33 |
+
height: 100%;
|
34 |
+
}
|
35 |
+
""") as demo:
|
36 |
+
with gr.Row(elem_classes=["full-height"]):
|
37 |
+
gr.ChatInterface(fn=respond, chatbot=gr.Chatbot(), fill_height=True)
|
38 |
|
39 |
demo.launch()
|