Spaces:
Runtime error
Runtime error
KvrParaskevi
commited on
Commit
•
f1824de
1
Parent(s):
fa240df
Update app.py
Browse files
app.py
CHANGED
@@ -66,19 +66,19 @@ llm_chain = ConversationChain(prompt=prompt, 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")
|
70 |
-
message = gr.Textbox(label="Ask me a question!")
|
71 |
-
clear = gr.Button("Clear")
|
72 |
#llm_chain, llm = init_chain(model, tokenizer)
|
73 |
|
74 |
-
|
75 |
fn=chat_interface,
|
76 |
inputs=[
|
77 |
-
gr.inputs.Textbox(lines=1, label="
|
78 |
gr.inputs.Textbox(lines=5, label="Chat History"),
|
79 |
],
|
80 |
outputs="text"
|
81 |
)
|
82 |
-
|
83 |
|
84 |
|
|
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("Hotel Booking Assistant Chat 🤗")
|
69 |
+
#chatbot = gr.Chatbot(label="Chat history")
|
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.inputs.Textbox(lines=1, label="Input"),
|
78 |
gr.inputs.Textbox(lines=5, label="Chat History"),
|
79 |
],
|
80 |
outputs="text"
|
81 |
)
|
82 |
+
demo.launch()
|
83 |
|
84 |
|