OlamideKayode commited on
Commit
6d8546d
·
verified ·
1 Parent(s): 1a33111

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -126,12 +126,14 @@ def chat_fn(user_message, history):
126
  history = history + [(user_message, bot_response)]
127
  return history, history
128
 
 
129
  with gr.Blocks() as demo:
130
  gr.Markdown("## 📘 University of Hull Assistant")
131
  chatbot = gr.Chatbot()
132
  state = gr.State([])
133
- user_input = gr.Textbox(placeholder="Ask a question about University of Hull...", show_label=False)
134
 
 
135
  user_input.submit(fn=chat_fn, inputs=[user_input, state], outputs=[chatbot, state])
136
 
137
- demo.launch()
 
 
126
  history = history + [(user_message, bot_response)]
127
  return history, history
128
 
129
+
130
  with gr.Blocks() as demo:
131
  gr.Markdown("## 📘 University of Hull Assistant")
132
  chatbot = gr.Chatbot()
133
  state = gr.State([])
 
134
 
135
+ user_input = gr.Textbox(placeholder="Ask a question about University of Hull...", show_label=False)
136
  user_input.submit(fn=chat_fn, inputs=[user_input, state], outputs=[chatbot, state])
137
 
138
+
139
+ app = demo