Spaces:
Sleeping
Sleeping
change random to rn
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import random as rn
|
| 3 |
def respond_yes_no_randomly(message, history):
|
| 4 |
responses = ["Yes", "No"]
|
| 5 |
-
return
|
| 6 |
|
| 7 |
print("hELLO World")
|
| 8 |
chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages", title="Yes No Bot") #chatbot UI - convo history & user input
|
|
|
|
| 2 |
import random as rn
|
| 3 |
def respond_yes_no_randomly(message, history):
|
| 4 |
responses = ["Yes", "No"]
|
| 5 |
+
return rn.choices(responses) #added here
|
| 6 |
|
| 7 |
print("hELLO World")
|
| 8 |
chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages", title="Yes No Bot") #chatbot UI - convo history & user input
|