sitammeur commited on
Commit
443f240
·
verified ·
1 Parent(s): cc8f7fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=256,
14
  value=120,
15
  step=20,
16
  label="Max Tokens",
@@ -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", 160, "Spanish"],
32
- ["images/dog.jpg", 256, "English"],
33
  ["images/bird.jpg", 120, "French"],
34
  ]
35
 
 
10
  image = gr.Image(type="pil", label="Image")
11
  max_new_tokens = gr.Slider(
12
  minimum=20,
13
+ maximum=260,
14
  value=120,
15
  step=20,
16
  label="Max Tokens",
 
28
 
29
  # Examples for the interface
30
  examples = [
31
+ ["images/cat.jpg", 140, "Spanish"],
32
+ ["images/dog.jpg", 260, "English"],
33
  ["images/bird.jpg", 120, "French"],
34
  ]
35