Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
return
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
+
def magic_8_ball(message, history):
|
| 5 |
+
return random.choice(['Yes', 'No','Maybe','Probably not..','For sure!' ])
|
| 6 |
|
| 7 |
+
#def echo(message, history):
|
| 8 |
+
# return message
|
| 9 |
+
|
| 10 |
+
print("Hello!")
|
| 11 |
+
chatbot = gr.ChatInterface(yes_or_no, type='messages')
|
| 12 |
|
| 13 |
chatbot.launch()
|