Spaces:
Runtime error
Runtime error
KvrParaskevi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -66,17 +66,19 @@ llm_chain = ConversationChain(llm=llm, memory = memory)
|
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("Hotel Booking Assistant Chat 🤗")
|
69 |
-
chatbot = gr.Chatbot( [ ],label="Chat history", bubble_full_width=False)
|
70 |
#message = gr.Textbox(label="Ask me a question!")
|
71 |
#clear = gr.Button("Clear")
|
72 |
#llm_chain, llm = init_chain(model, tokenizer)
|
|
|
|
|
73 |
|
74 |
demo.chatbot_interface = gr.Interface(
|
75 |
fn=chat_interface,
|
76 |
inputs=[
|
77 |
-
|
78 |
],
|
79 |
-
outputs=
|
80 |
title = "Hotel Booking Assistant Chat 🤗",
|
81 |
description = "I am your hotel booking assistant. Feel free to start chatting with me."
|
82 |
)
|
|
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("Hotel Booking Assistant Chat 🤗")
|
69 |
+
#chatbot = gr.Chatbot( [ ],label="Chat history", bubble_full_width=False)
|
70 |
#message = gr.Textbox(label="Ask me a question!")
|
71 |
#clear = gr.Button("Clear")
|
72 |
#llm_chain, llm = init_chain(model, tokenizer)
|
73 |
+
chatbot_component = gr.Chatbot(height=300)
|
74 |
+
textbox_component = gr.Textbox(placeholder="Can I help you to book a hotel?", container=False, label = "input", scale=7)
|
75 |
|
76 |
demo.chatbot_interface = gr.Interface(
|
77 |
fn=chat_interface,
|
78 |
inputs=[
|
79 |
+
textbox_component
|
80 |
],
|
81 |
+
outputs=chatbot_component,
|
82 |
title = "Hotel Booking Assistant Chat 🤗",
|
83 |
description = "I am your hotel booking assistant. Feel free to start chatting with me."
|
84 |
)
|