Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ with gr.Blocks(title="BPE Visualization Demo") as demo:
|
|
| 142 |
model_type = gr.Dropdown(
|
| 143 |
choices=["TokenFD_4096_English_seg", "TokenFD_2048_Bilingual_seg", "R50", "R50_siglip"],
|
| 144 |
label="Select model type",
|
| 145 |
-
value="
|
| 146 |
)
|
| 147 |
image_input = gr.Image(label="Upload images", type="pil")
|
| 148 |
text_input = gr.Textbox(label="Input text")
|
|
|
|
| 142 |
model_type = gr.Dropdown(
|
| 143 |
choices=["TokenFD_4096_English_seg", "TokenFD_2048_Bilingual_seg", "R50", "R50_siglip"],
|
| 144 |
label="Select model type",
|
| 145 |
+
value="TokenFD_4096_English_seg" # 设置默认值为第一个选项
|
| 146 |
)
|
| 147 |
image_input = gr.Image(label="Upload images", type="pil")
|
| 148 |
text_input = gr.Textbox(label="Input text")
|