Rodrigo_Cobo commited on
Commit
77dd0d7
1 Parent(s): 675a26e
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,14 +1,13 @@
1
  import gradio as gr
2
 
3
 
4
- def predict(image):
5
- predictions = image
6
- return image
7
 
8
  iface = gr.Interface(
9
- predict,
10
- inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
11
- outputs=gr.outputs,
12
  title="Hot Dog? Or Not?",
13
  )
14
  iface.launch()
 
1
  import gradio as gr
2
 
3
 
4
+ def image_classifier(inp):
5
+ return {'cat': 0.3, 'dog': 0.7}
 
6
 
7
  iface = gr.Interface(
8
+ image_classifier,
9
+ inputs="image",
10
+ outputs="label",
11
  title="Hot Dog? Or Not?",
12
  )
13
  iface.launch()