sitammeur commited on
Commit
6b709ca
·
verified ·
1 Parent(s): e308804

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = "Visual Question Answering"
44
- description = "Gradio Demo for the PaliGemma 2 Vision Language Understanding and Generation model. This model can answer questions about images in natural language. To use it, upload your image, type a question, select associated parameters, use the default values, click 'Submit', or click one of the examples to load them. You can read more at 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
 
 
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