Spaces:
Sleeping
Sleeping
adding type parameter to messages
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def echo (message, history):
|
|
|
|
| 4 |
return message
|
| 5 |
-
chatbot = gr.ChatInterface(echo)
|
| 6 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def echo (message, history):
|
| 4 |
+
print('Hello, world!')
|
| 5 |
return message
|
| 6 |
+
chatbot = gr.ChatInterface(echo, type = 'messages')
|
| 7 |
chatbot.launch()
|