pierreguillou commited on
Commit
c2b29b5
1 Parent(s): 58f224e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -29,6 +29,8 @@ description = "Gradio demo for Tesseract in Portuguese (Tesseract is an open sou
29
  article = "<p style='text-align: center'><a href='https://tesseract-ocr.github.io/' target='_blank'>Tesseract documentation</a> | <a href='https://github.com/tesseract-ocr/tesseract' target='_blank'>Github Repo</a></p>"
30
  #examples = [['eurotext.png', ['eng']], ['tesseract_sample.png', ['jpn', 'eng']], ['chi.jpg', ['HanS', 'HanT']]]
31
  examples = [['exemple.png']]
 
 
32
 
33
  gr.Interface(
34
  inference,
@@ -38,5 +40,7 @@ gr.Interface(
38
  title=title,
39
  description=description,
40
  article=article,
41
- examples=examples
42
- ).launch(enable_queue=True)
 
 
 
29
  article = "<p style='text-align: center'><a href='https://tesseract-ocr.github.io/' target='_blank'>Tesseract documentation</a> | <a href='https://github.com/tesseract-ocr/tesseract' target='_blank'>Github Repo</a></p>"
30
  #examples = [['eurotext.png', ['eng']], ['tesseract_sample.png', ['jpn', 'eng']], ['chi.jpg', ['HanS', 'HanT']]]
31
  examples = [['exemple.png']]
32
+ allow_flagging = "never"
33
+ live = True
34
 
35
  gr.Interface(
36
  inference,
 
40
  title=title,
41
  description=description,
42
  article=article,
43
+ examples=examples,
44
+ allow_flagging=allow_flagging,
45
+ live=live
46
+ ).launch(debug=False, enable_queue=True)