Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,15 +2,15 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
responses = [
|
| 5 |
-
|
| 6 |
-
"Hey!"
|
| 7 |
"Idk"
|
| 8 |
"Maybe"
|
| 9 |
"Yes"
|
| 10 |
"No"
|
| 11 |
]
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
responses = [
|
| 5 |
+
|
|
|
|
| 6 |
"Idk"
|
| 7 |
"Maybe"
|
| 8 |
"Yes"
|
| 9 |
"No"
|
| 10 |
]
|
| 11 |
|
| 12 |
+
def random_response(message, history):
|
| 13 |
+
random.choice(responses)
|
| 14 |
+
print(random_response)
|
| 15 |
+
chatbot = ChatInterface(random_response, type = 'messages')
|
| 16 |
+
chatbot.launch()
|