sitammeur commited on
Commit
b0ff63f
1 Parent(s): 7089fdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,6 +1,6 @@
1
  # Importing the requirements
2
- import warnings
3
- warnings.filterwarnings("ignore")
4
 
5
  import gradio as gr
6
  from src.app.task import ocr_task
@@ -33,11 +33,12 @@ interface = gr.Interface(
33
  inputs=[image],
34
  outputs=[ocr_image_output, ocr_text_output],
35
  examples=examples,
36
- cache_examples="lazy",
 
37
  title=title,
38
  description=description,
39
  article=article,
40
  theme="Nymbo/Nymbo_Theme",
41
- allow_flagging="never",
42
  )
43
  interface.launch(debug=False)
 
1
  # Importing the requirements
2
+ # import warnings
3
+ # warnings.filterwarnings("ignore")
4
 
5
  import gradio as gr
6
  from src.app.task import ocr_task
 
33
  inputs=[image],
34
  outputs=[ocr_image_output, ocr_text_output],
35
  examples=examples,
36
+ cache_examples=True,
37
+ cache_mode="lazy",
38
  title=title,
39
  description=description,
40
  article=article,
41
  theme="Nymbo/Nymbo_Theme",
42
+ flagging_mode="never",
43
  )
44
  interface.launch(debug=False)