Spaces:
Sleeping
Sleeping
run
Browse files
app.py
CHANGED
|
@@ -79,5 +79,23 @@ def respond(message, history):
|
|
| 79 |
response += token
|
| 80 |
yield response
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 83 |
chatbot.launch()
|
|
|
|
| 79 |
response += token
|
| 80 |
yield response
|
| 81 |
|
| 82 |
+
|
| 83 |
+
#EMMA'S PRACTICE EDITS#
|
| 84 |
+
about_text = """
|
| 85 |
+
## About this bot
|
| 86 |
+
This demo **simply echoes** everything you type.
|
| 87 |
+
Use the chat box on the right to try it out!
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
with gr.Blocks() as demo:
|
| 91 |
+
with gr.Row():
|
| 92 |
+
with gr.Column(scale=1):
|
| 93 |
+
gr.Markdown(about_text)
|
| 94 |
+
|
| 95 |
+
with gr.Column(scale=2):
|
| 96 |
+
gr.ChatInterface(echo)
|
| 97 |
+
|
| 98 |
+
demo.launch()
|
| 99 |
+
|
| 100 |
chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 101 |
chatbot.launch()
|