John Ho commited on
Commit
a2b5338
Β·
1 Parent(s): 38a6470

changed image type to pil

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -22,7 +22,10 @@ def point(im: Image.Image, object_name: str):
22
 
23
  demo = gr.Interface(
24
  fn=point,
25
- inputs=[gr.Image(label="Input Image"), gr.Textbox(label="Object to Detect")],
 
 
 
26
  outputs=gr.Textbox(label="Output Text"),
27
  )
28
  demo.launch()
 
22
 
23
  demo = gr.Interface(
24
  fn=point,
25
+ inputs=[
26
+ gr.Image(label="Input Image", type="pil"),
27
+ gr.Textbox(label="Object to Detect"),
28
+ ],
29
  outputs=gr.Textbox(label="Output Text"),
30
  )
31
  demo.launch()