Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
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 |
-
|
|
|
|
|
|
| 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
|