Spaces:
Sleeping
Sleeping
Commit
·
f716c20
1
Parent(s):
f93d79f
init
Browse files
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import random
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def random_response(message, history):
|
| 5 |
+
return random.choice(["Yes", "No", "Maybe", "I don't know", "I'm not sure about that", "Why you ask me that?", "Damn, I'm sorry bro", "Really? Tell me more about it"])
|
| 6 |
+
|
| 7 |
+
iface = gr.ChatInterface(random_response)
|
| 8 |
+
iface.launch()
|
app.py~
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import random
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def random_response(message, history):
|
| 5 |
+
return random.choice(["Yes", "No", "Maybe", "I don't know", "I'm not sure about that", "Why you ask me that?", "Damn, I'm sorry bro", "Really? Tell me more about it"])
|
| 6 |
+
|
| 7 |
+
app = gr.ChatInterface(random_response)
|
| 8 |
+
app.launch()
|