aliabd HF staff commited on
Commit
1a67ad1
1 Parent(s): d337991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -21,8 +21,11 @@ def predict(inp):
21
  return confidences
22
 
23
  # define the interface
24
- gr.Interface(fn=predict,
25
  inputs=gr.inputs.Image(type="pil"),
26
  outputs=gr.outputs.Label(num_top_classes=3),
27
  examples=["lion.jpg", "cheetah.jpg"],
28
- ).launch()
 
 
 
 
21
  return confidences
22
 
23
  # define the interface
24
+ demo = gr.Interface(fn=predict,
25
  inputs=gr.inputs.Image(type="pil"),
26
  outputs=gr.outputs.Label(num_top_classes=3),
27
  examples=["lion.jpg", "cheetah.jpg"],
28
+ )
29
+
30
+ # launch
31
+ demo.launch()