Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def chat(message, history):
|
| 4 |
+
reply = "You said: " + message
|
| 5 |
+
history = history + [[message, reply]]
|
| 6 |
+
return reply, history
|
| 7 |
+
|
| 8 |
+
demo = gr.ChatInterface(chat)
|
| 9 |
+
demo.queue()
|
| 10 |
+
demo.launch()
|