Spaces:
Sleeping
Sleeping
BMike10
commited on
Commit
•
619ead2
1
Parent(s):
bddad90
add requirements
Browse files- app.py +4 -3
- requirements.txt +0 -0
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
|
4 |
-
def
|
5 |
-
return "
|
6 |
|
7 |
|
8 |
-
iface = gr.
|
9 |
iface.launch()
|
|
|
1 |
+
import random
|
2 |
import gradio as gr
|
3 |
|
4 |
|
5 |
+
def random_response(message, history):
|
6 |
+
return random.choice(["Yes", "No"])
|
7 |
|
8 |
|
9 |
+
iface = gr.ChatInterface(random_response)
|
10 |
iface.launch()
|
requirements.txt
ADDED
File without changes
|