BMike10 commited on
Commit
619ead2
1 Parent(s): bddad90

add requirements

Browse files
Files changed (2) hide show
  1. app.py +4 -3
  2. requirements.txt +0 -0
app.py CHANGED
@@ -1,9 +1,10 @@
 
1
  import gradio as gr
2
 
3
 
4
- def greet(name):
5
- return "Hello " + name + "!!"
6
 
7
 
8
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
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