Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def random_message(message, history):
|
| 4 |
+
choices = ["yes", "no"]
|
| 5 |
+
chat_answer = random.choice(choices)
|
| 6 |
+
return chat_answer
|
| 7 |
+
|
| 8 |
+
print("Hello, World!")
|
| 9 |
+
chatbot = gr.ChatInterface(random_message, type = "messages")
|
| 10 |
|
| 11 |
chatbot.launch()
|