wyyadd commited on
Commit
22d6086
1 Parent(s): 0ffbaaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -66,12 +66,11 @@ examples =[['publaynet_example.jpeg']]
66
  css = ".output-image, .input-image, .image-preview {height: 600px !important}"
67
 
68
  iface = gr.Interface(fn=analyze_image,
69
- inputs=gr.inputs.Image(type="numpy", label="document image"),
70
- outputs=gr.outputs.Image(type="numpy", label="annotated document"),
71
  title=title,
72
  description=description,
73
  examples=examples,
74
  article=article,
75
- css=css,
76
- enable_queue=True)
77
- iface.launch(debug=True, cache_examples=True)
 
66
  css = ".output-image, .input-image, .image-preview {height: 600px !important}"
67
 
68
  iface = gr.Interface(fn=analyze_image,
69
+ inputs=gr.Image(type="numpy", label="document image"),
70
+ outputs=gr.Image(type="numpy", label="annotated document"),
71
  title=title,
72
  description=description,
73
  examples=examples,
74
  article=article,
75
+ css=css)
76
+ iface.queue(5).launch()