KvrParaskevi commited on
Commit
f1824de
1 Parent(s): fa240df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- iface = gr.Interface(
75
  fn=chat_interface,
76
  inputs=[
77
- gr.inputs.Textbox(lines=1, label="Question"),
78
  gr.inputs.Textbox(lines=5, label="Chat History"),
79
  ],
80
  outputs="text"
81
  )
82
- iface.launch()
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