Upload 9 files
Browse files
app.py
CHANGED
|
@@ -118,7 +118,7 @@ with gr.Blocks(title="Salamandra Vision 7B · ZeroGPU") as demo:
|
|
| 118 |
|
| 119 |
# API BATCH para ENGINE (Gradio Client): images + context_json → list[str]
|
| 120 |
# Firma que espera el VisionClient del engine (api_name="/predict")
|
| 121 |
-
batch_in_images = gr.Gallery(label="Imágenes (batch)", show_label=False
|
| 122 |
batch_context = gr.Textbox(label="context_json", value="{}", lines=4)
|
| 123 |
batch_max = gr.Slider(16, 1024, value=256, step=16, label="max_new_tokens")
|
| 124 |
batch_temp = gr.Slider(0.0, 1.5, value=0.7, step=0.05, label="temperature")
|
|
|
|
| 118 |
|
| 119 |
# API BATCH para ENGINE (Gradio Client): images + context_json → list[str]
|
| 120 |
# Firma que espera el VisionClient del engine (api_name="/predict")
|
| 121 |
+
batch_in_images = gr.Gallery(label="Imágenes (batch)", show_label=False, columns=4, height="auto")
|
| 122 |
batch_context = gr.Textbox(label="context_json", value="{}", lines=4)
|
| 123 |
batch_max = gr.Slider(16, 1024, value=256, step=16, label="max_new_tokens")
|
| 124 |
batch_temp = gr.Slider(0.0, 1.5, value=0.7, step=0.05, label="temperature")
|