sitammeur commited on
Commit
7b50370
·
verified ·
1 Parent(s): 225b51e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,8 +10,8 @@ from src.paligemma.response import caption_image
10
  image = gr.Image(type="pil", label="Image")
11
  max_new_tokens = gr.Slider(
12
  minimum=20,
13
- maximum=160,
14
- value=80,
15
  step=10,
16
  label="Max Tokens",
17
  info="Use larger values for detailed captions",
@@ -28,8 +28,8 @@ answer = gr.Textbox(label="Generated Caption", show_label=True, show_copy_button
28
 
29
  # Examples for the interface
30
  examples = [
31
- ["images/cat.jpg", 100, "Spanish"],
32
- ["images/dog.jpg", 80, "English"],
33
  ["images/bird.jpg", 160, "French"],
34
  ]
35
 
 
10
  image = gr.Image(type="pil", label="Image")
11
  max_new_tokens = gr.Slider(
12
  minimum=20,
13
+ maximum=300,
14
+ value=100,
15
  step=10,
16
  label="Max Tokens",
17
  info="Use larger values for detailed captions",
 
28
 
29
  # Examples for the interface
30
  examples = [
31
+ ["images/cat.jpg", 200, "Spanish"],
32
+ ["images/dog.jpg", 300, "English"],
33
  ["images/bird.jpg", 160, "French"],
34
  ]
35