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