Spaces:
Running
Running
akhil20187
commited on
Commit
•
948f208
1
Parent(s):
1f2a808
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
import random
|
4 |
+
|
5 |
+
def random_response(message, history):
|
6 |
+
response = random.choice(["Yes", "No", "Maybe", "I don't know","Who are you"])
|
7 |
+
return response
|
8 |
+
|
9 |
+
demo = gr.ChatInterface(random_response).launch()
|
10 |
+
|