Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
choices = ["yes", "No", "As I see it", "yes", "Outlook good", "Yes - definitely", "without a doubt", "ask again later", "cannot predict now,
|
| 6 |
-
|
| 7 |
-
return chat_answer
|
| 8 |
|
| 9 |
-
|
| 10 |
-
chatbot = gr.ChatInterface(
|
| 11 |
|
| 12 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
|
| 4 |
+
def echo(message, history):
|
| 5 |
+
choices = ["yes", "No", "As I see it", "yes", "Outlook good", "Yes - definitely", "without a doubt", "ask again later", "cannot predict now", "my reply is no", "very doubtful", ]
|
| 6 |
+
return random.choice(my_list)
|
|
|
|
| 7 |
|
| 8 |
+
|
| 9 |
+
chatbot = gr.ChatInterface(echo, type="messages", title = "Eight Ball", )
|
| 10 |
|
| 11 |
chatbot.launch()
|