Update app.py
Browse files
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=
|
|
|
37 |
title=title,
|
38 |
description=description,
|
39 |
article=article,
|
40 |
theme="Nymbo/Nymbo_Theme",
|
41 |
-
|
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)
|