Thien Tran commited on
Commit
27fac8b
1 Parent(s): 2eaf78d

update gradio interface

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,12 +80,12 @@ css = ".output-image, .input-image {height: 40rem !important; width: 100% !impor
80
  css = ".image-preview {height: auto !important;}"
81
 
82
  iface = gr.Interface(fn=process_image,
83
- inputs=gr.inputs.Image(type="pil"),
84
- outputs=gr.outputs.Image(type="pil", label="annotated image"),
85
  title=title,
86
  description=description,
87
  article=article,
88
  examples=examples,
89
  css=css,
90
  enable_queue=True)
91
- iface.launch(debug=True)
 
80
  css = ".image-preview {height: auto !important;}"
81
 
82
  iface = gr.Interface(fn=process_image,
83
+ inputs=gr.Image(type="pil"),
84
+ outputs=gr.Image(type="pil", label="annotated image"),
85
  title=title,
86
  description=description,
87
  article=article,
88
  examples=examples,
89
  css=css,
90
  enable_queue=True)
91
+ iface.launch(debug=True)