Spaces:
Sleeping
Sleeping
gokaygokay
commited on
Commit
•
90d93e3
1
Parent(s):
4d69588
Update app.py
Browse files
app.py
CHANGED
@@ -259,7 +259,7 @@ with gr.Blocks(css=css) as demo:
|
|
259 |
input_img = gr.Image(label="Input Picture")
|
260 |
model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value='microsoft/Florence-2-large')
|
261 |
task_type = gr.Radio(choices=['Single task', 'Cascased task'], label='Task type selector', value='Single task')
|
262 |
-
task_prompt = gr.Dropdown(choices=single_task_list, label="Task Prompt")
|
263 |
task_type.change(fn=update_task_dropdown, inputs=task_type, outputs=task_prompt)
|
264 |
text_input = gr.Textbox(label="Text Input (optional)")
|
265 |
submit_btn = gr.Button(value="Submit")
|
|
|
259 |
input_img = gr.Image(label="Input Picture")
|
260 |
model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value='microsoft/Florence-2-large')
|
261 |
task_type = gr.Radio(choices=['Single task', 'Cascased task'], label='Task type selector', value='Single task')
|
262 |
+
task_prompt = gr.Dropdown(choices=single_task_list, label="Task Prompt", value="Caption")
|
263 |
task_type.change(fn=update_task_dropdown, inputs=task_type, outputs=task_prompt)
|
264 |
text_input = gr.Textbox(label="Text Input (optional)")
|
265 |
submit_btn = gr.Button(value="Submit")
|