Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
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",
|
32 |
-
["images/dog.jpg",
|
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 |
|