Javier Flores commited on
Commit
d723038
1 Parent(s): cc5a075
Files changed (2) hide show
  1. app.py +4 -3
  2. requirements.txt +0 -0
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ def predict(image):
4
+ return image
5
+ inp = gr.inputs.Image(source="webcam", shape=(224,224))
6
 
7
+ iface = gr.Interface(fn=predict, inputs="text", outputs="text")
8
  iface.launch()
requirements.txt ADDED
File without changes