Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -297,7 +297,7 @@ def create_gradio_interface():
|
|
| 297 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=100, step=1, value=40)
|
| 298 |
repetition_penalty = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.1)
|
| 299 |
|
| 300 |
-
process_btn = gr.Button("🚀 Process
|
| 301 |
clear_btn = gr.Button("🗑️ Clear", variant="secondary")
|
| 302 |
|
| 303 |
with gr.Column(scale=2):
|
|
@@ -360,7 +360,7 @@ def create_gradio_interface():
|
|
| 360 |
inputs=[model_choice, image_input_doc, prompt_input_doc, max_new_tokens, temperature, top_p, top_k, repetition_penalty],
|
| 361 |
outputs=[output_stream, markdown_output]
|
| 362 |
)
|
| 363 |
-
clear_btn.click(lambda: (None, "", ""), outputs=[image_input_doc, prompt_input_doc, output_stream])
|
| 364 |
|
| 365 |
# Moondream3 Tab
|
| 366 |
def update_max_objects_visibility(task):
|
|
|
|
| 297 |
top_k = gr.Slider(label="Top-k", minimum=1, maximum=100, step=1, value=40)
|
| 298 |
repetition_penalty = gr.Slider(label="Repetition Penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.1)
|
| 299 |
|
| 300 |
+
process_btn = gr.Button("🚀 Process", variant="primary", elem_classes=["process-button"])
|
| 301 |
clear_btn = gr.Button("🗑️ Clear", variant="secondary")
|
| 302 |
|
| 303 |
with gr.Column(scale=2):
|
|
|
|
| 360 |
inputs=[model_choice, image_input_doc, prompt_input_doc, max_new_tokens, temperature, top_p, top_k, repetition_penalty],
|
| 361 |
outputs=[output_stream, markdown_output]
|
| 362 |
)
|
| 363 |
+
clear_btn.click(lambda: (None, "", ""), outputs=[image_input_doc, prompt_input_doc, output_stream, markdown_output])
|
| 364 |
|
| 365 |
# Moondream3 Tab
|
| 366 |
def update_max_objects_visibility(task):
|