Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def echo(message, history):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
return message
|
| 5 |
|
| 6 |
-
chatbot = gr.ChatInterface(echo)
|
| 7 |
chatbot.launch()
|
| 8 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def echo(message, history):
|
| 4 |
+
print("Hello, world")
|
| 5 |
+
print(message)
|
| 6 |
+
print(history)
|
| 7 |
+
|
| 8 |
return message
|
| 9 |
|
| 10 |
+
chatbot = gr.ChatInterface(echo, type='messages')
|
| 11 |
chatbot.launch()
|
| 12 |
|