sayakpaul HF staff chansung commited on
Commit
7cbd81a
1 Parent(s): 329f9c0

fix outdated gr.inputs and gr.outputs (#2)

Browse files

- fix outdated gr.inputs and gr.outputs (ee17513c1a4584fe1ba99d6c7c93040c11ef3fe4)


Co-authored-by: chansung park <chansung@users.noreply.huggingface.co>

Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -19,8 +19,8 @@ def predict(inp):
19
  def run():
20
  demo = gr.Interface(
21
  fn=predict,
22
- inputs=gr.inputs.Image(type="pil"),
23
- outputs=gr.outputs.Label(num_top_classes=3),
24
  )
25
 
26
  demo.launch(server_name="0.0.0.0", server_port=7860)
 
19
  def run():
20
  demo = gr.Interface(
21
  fn=predict,
22
+ inputs=gr.Image(type="pil"),
23
+ outputs=gr.Label(num_top_classes=3),
24
  )
25
 
26
  demo.launch(server_name="0.0.0.0", server_port=7860)