Update app.py
Browse files
app.py
CHANGED
|
@@ -89,9 +89,9 @@ if device == "cpu":
|
|
| 89 |
|
| 90 |
# Define examples
|
| 91 |
examples = [
|
|
|
|
| 92 |
["images/1.png", "Florence-2-base"],
|
| 93 |
["images/3.png", "Florence-2-large"],
|
| 94 |
-
["images/2.png", "Florence-2-large"],
|
| 95 |
["images/4.png", "Florence-2-large"]
|
| 96 |
]
|
| 97 |
|
|
@@ -117,7 +117,7 @@ with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
|
|
| 117 |
gr.Examples(examples=examples, inputs=[image_input])
|
| 118 |
# Right column: Model choice, output, and examples
|
| 119 |
with gr.Column():
|
| 120 |
-
model_choice = gr.Radio(["Florence-2-base", "Florence-2-large"], label="Model Choice", value="Florence-2-
|
| 121 |
with gr.Row():
|
| 122 |
output = gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True)
|
| 123 |
# Connect the button to the function
|
|
|
|
| 89 |
|
| 90 |
# Define examples
|
| 91 |
examples = [
|
| 92 |
+
["images/2.png", "Florence-2-large"],
|
| 93 |
["images/1.png", "Florence-2-base"],
|
| 94 |
["images/3.png", "Florence-2-large"],
|
|
|
|
| 95 |
["images/4.png", "Florence-2-large"]
|
| 96 |
]
|
| 97 |
|
|
|
|
| 117 |
gr.Examples(examples=examples, inputs=[image_input])
|
| 118 |
# Right column: Model choice, output, and examples
|
| 119 |
with gr.Column():
|
| 120 |
+
model_choice = gr.Radio(["Florence-2-base", "Florence-2-large"], label="Model Choice", value="Florence-2-large")
|
| 121 |
with gr.Row():
|
| 122 |
output = gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True)
|
| 123 |
# Connect the button to the function
|