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