Spaces:
Runtime error
Runtime error
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.response import describe_image
|
@@ -32,11 +32,12 @@ interface = gr.Interface(
|
|
32 |
inputs=[image, question],
|
33 |
outputs=answer,
|
34 |
examples=examples,
|
35 |
-
cache_examples=
|
|
|
36 |
title=title,
|
37 |
description=description,
|
38 |
article=article,
|
39 |
theme="JohnSmith9982/small_and_pretty",
|
40 |
-
|
41 |
)
|
42 |
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.response import describe_image
|
|
|
32 |
inputs=[image, question],
|
33 |
outputs=answer,
|
34 |
examples=examples,
|
35 |
+
cache_examples=True,
|
36 |
+
cache_mode="lazy",
|
37 |
title=title,
|
38 |
description=description,
|
39 |
article=article,
|
40 |
theme="JohnSmith9982/small_and_pretty",
|
41 |
+
flagging_mode="never",
|
42 |
)
|
43 |
interface.launch(debug=False)
|