Spaces:
Runtime error
Runtime error
KvrParaskevi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -66,12 +66,12 @@ llm_chain = ConversationChain(llm=llm, memory = memory)
|
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("Hotel Booking Assistant Chat 🤗")
|
69 |
-
|
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.
|
75 |
fn=chat_interface,
|
76 |
inputs=[
|
77 |
gr.Textbox(lines=1, label="input")
|
|
|
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 |
gr.Textbox(lines=1, label="input")
|