Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
| 5 |
print("hello, Princess")
|
| 6 |
-
chatbot = gr.ChatInterface(
|
| 7 |
|
| 8 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random #added here
|
| 3 |
+
def respond_yes_no_randomly(message, history):
|
| 4 |
+
responses = ["yes", "No"]#added here
|
| 5 |
+
return random.choice(responses)#added here
|
| 6 |
print("hello, Princess")
|
| 7 |
+
chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages" title="Personal Yes No Women")
|
| 8 |
|
| 9 |
chatbot.launch()
|