sitammeur commited on
Commit
cc8f7fc
·
verified ·
1 Parent(s): 37f9f35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,7 +10,7 @@ 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=300,
14
  value=120,
15
  step=20,
16
  label="Max Tokens",
@@ -28,9 +28,9 @@ answer = gr.Textbox(label="Generated Caption", show_label=True, show_copy_button
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
 
36
  # Title, description, and article for the interface
 
10
  image = gr.Image(type="pil", label="Image")
11
  max_new_tokens = gr.Slider(
12
  minimum=20,
13
+ maximum=256,
14
  value=120,
15
  step=20,
16
  label="Max Tokens",
 
28
 
29
  # Examples for the interface
30
  examples = [
31
+ ["images/cat.jpg", 160, "Spanish"],
32
+ ["images/dog.jpg", 256, "English"],
33
+ ["images/bird.jpg", 120, "French"],
34
  ]
35
 
36
  # Title, description, and article for the interface