Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,12 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
chatbot.launch()
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
# first, add your import lines
|
| 3 |
|
| 4 |
+
def echo(message, history):
|
| 5 |
+
return message
|
| 6 |
+
# Code the function that your chatbot will run!
|
| 7 |
+
|
| 8 |
+
chatbot = gr.ChatInterface(echo)
|
| 9 |
+
# Use gradio to create an interface where your user can use ChatInterface --> needs a function as a parameter to run
|
| 10 |
|
| 11 |
chatbot.launch()
|
| 12 |
+
# launches our chatbot
|