JustinLin610 commited on
Commit
8860979
1 Parent(s): abbcf34

update to new gradio version

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -195,7 +195,6 @@ article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA
195
  examples = [['shupai.png'], ['chinese.jpg']]
196
  io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='filepath', label='Image'),
197
  outputs=[gr.outputs.Image(type='pil', label='Image'), gr.outputs.Textbox(label="OCR result")],
198
- title=title, description=description, article=article, examples=examples,
199
- allow_flagging='never', allow_screenshot=False)
200
- io.launch(cache_examples=False)
201
 
 
195
  examples = [['shupai.png'], ['chinese.jpg']]
196
  io = gr.Interface(fn=ocr, inputs=gr.inputs.Image(type='filepath', label='Image'),
197
  outputs=[gr.outputs.Image(type='pil', label='Image'), gr.outputs.Textbox(label="OCR result")],
198
+ title=title, description=description, article=article, examples=examples)
199
+ io.launch()
 
200