Upload 2 files
Browse files- app.py +9 -0
- requirement.txt +0 -0
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
+
|
| 4 |
+
def random_response(message, history):
|
| 5 |
+
return random.choice(["Yes", "No"])
|
| 6 |
+
gr.ChatInterface(
|
| 7 |
+
fn=random_response,
|
| 8 |
+
type="messages"
|
| 9 |
+
).launch()
|
requirement.txt
ADDED
|
Binary file (16.1 kB). View file
|
|
|