Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,17 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
return random.choice(['
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# def echo(message, history):
|
| 8 |
# return message
|
| 9 |
|
| 10 |
print("Hello, world!")
|
| 11 |
|
| 12 |
-
chatbot = gr.ChatInterface(
|
| 13 |
|
| 14 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def eight_ball(message, history):
|
| 5 |
+
return random.choice(['Try again later!', 'Not so fast...', "It's lookin good babe!"])
|
| 6 |
+
|
| 7 |
+
# def yes_or_no(message, history):
|
| 8 |
+
# return random.choice(['yes', 'no'])
|
| 9 |
|
| 10 |
# def echo(message, history):
|
| 11 |
# return message
|
| 12 |
|
| 13 |
print("Hello, world!")
|
| 14 |
|
| 15 |
+
chatbot = gr.ChatInterface(eight_ball, type="messages")
|
| 16 |
|
| 17 |
chatbot.launch()
|