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