Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import os
|
|
3 |
os.system("pip install ./transformers-4.47.0.dev0-py3-none-any.whl")
|
4 |
|
5 |
# Importing the requirements
|
6 |
-
import warnings
|
7 |
-
warnings.filterwarnings("ignore")
|
8 |
|
9 |
import gradio as gr
|
10 |
from src.app.response import caption_image
|
@@ -40,8 +40,8 @@ examples = [
|
|
40 |
]
|
41 |
|
42 |
# Title, description, and article for the interface
|
43 |
-
title = "
|
44 |
-
description = "Gradio Demo for the PaliGemma 2 Vision Language Understanding and Generation model. This model
|
45 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2412.03555' target='_blank'>Model Paper</a> | <a href='https://huggingface.co/google/paligemma2-3b-ft-docci-448' target='_blank'>Model Page</a></p>"
|
46 |
|
47 |
|
|
|
3 |
os.system("pip install ./transformers-4.47.0.dev0-py3-none-any.whl")
|
4 |
|
5 |
# Importing the requirements
|
6 |
+
# import warnings
|
7 |
+
# warnings.filterwarnings("ignore")
|
8 |
|
9 |
import gradio as gr
|
10 |
from src.app.response import caption_image
|
|
|
40 |
]
|
41 |
|
42 |
# Title, description, and article for the interface
|
43 |
+
title = "PaliGemma 2 Image Captioning"
|
44 |
+
description = "Gradio Demo for the PaliGemma 2 Vision Language Understanding and Generation model. This model generates natural language captions based on uploaded images. To use it, upload your image, select the desired parameters (or stick with the default settings), and click 'Submit.' You can also choose one of the examples to load a predefined image. For more information, please refer to the links below."
|
45 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2412.03555' target='_blank'>Model Paper</a> | <a href='https://huggingface.co/google/paligemma2-3b-ft-docci-448' target='_blank'>Model Page</a></p>"
|
46 |
|
47 |
|