Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# Importing the requirements
|
2 |
-
|
3 |
-
|
4 |
|
5 |
import gradio as gr
|
6 |
from src.paligemma.response import caption_image
|
@@ -45,8 +45,8 @@ interface = gr.Interface(
|
|
45 |
inputs=[image, max_new_tokens, language],
|
46 |
outputs=answer,
|
47 |
examples=examples,
|
48 |
-
cache_examples=
|
49 |
-
|
50 |
title=title,
|
51 |
description=description,
|
52 |
article=article,
|
|
|
1 |
# Importing the requirements
|
2 |
+
import warnings
|
3 |
+
warnings.filterwarnings("ignore")
|
4 |
|
5 |
import gradio as gr
|
6 |
from src.paligemma.response import caption_image
|
|
|
45 |
inputs=[image, max_new_tokens, language],
|
46 |
outputs=answer,
|
47 |
examples=examples,
|
48 |
+
cache_examples=True,
|
49 |
+
cache_mode="lazy",
|
50 |
title=title,
|
51 |
description=description,
|
52 |
article=article,
|