Spaces:
Sleeping
Sleeping
adding print message and history
Browse files
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 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()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def echo (message, history):
|
| 4 |
+
# print('Hello, world!') example
|
| 5 |
+
print(message)
|
| 6 |
+
print(history)
|
| 7 |
return message
|
| 8 |
chatbot = gr.ChatInterface(echo, type = 'messages')
|
| 9 |
chatbot.launch()
|