Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def echo(message, history):
|
|
|
|
| 4 |
return message
|
| 5 |
print("Hello, World")
|
| 6 |
|
| 7 |
chatbot = gr.ChatInterface(echo, type='messages')
|
|
|
|
| 8 |
|
| 9 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
#import lines go at the top!
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
+
#always need two inputs
|
| 6 |
return message
|
| 7 |
print("Hello, World")
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type='messages')
|
| 10 |
+
#defining my chatbot so user can interact, see their conversation and send new messages
|
| 11 |
|
| 12 |
chatbot.launch()
|