Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
@@ -69,7 +69,7 @@ css = """
|
|
69 |
}
|
70 |
|
71 |
/* Set button widths to match the Select Model width */
|
72 |
-
.
|
73 |
width: 250px; /* Same as the select box width */
|
74 |
margin: 5px;
|
75 |
}
|
@@ -112,7 +112,7 @@ with gr.Blocks(css=css) as app:
|
|
112 |
label="Select Model",
|
113 |
value="Medium Model",
|
114 |
)
|
115 |
-
submit_button = gr.Button("Run Detection", variant="primary")
|
116 |
clear_button = gr.Button("Clear", variant="secondary")
|
117 |
|
118 |
submit_button.click(run_test_power, inputs=[model_name, input_text, input_text], outputs=output)
|
|
|
69 |
}
|
70 |
|
71 |
/* Set button widths to match the Select Model width */
|
72 |
+
.button {
|
73 |
width: 250px; /* Same as the select box width */
|
74 |
margin: 5px;
|
75 |
}
|
|
|
112 |
label="Select Model",
|
113 |
value="Medium Model",
|
114 |
)
|
115 |
+
submit_button = gr.Button("Run Detection", variant="primary", elem_classes=["button"])
|
116 |
clear_button = gr.Button("Clear", variant="secondary")
|
117 |
|
118 |
submit_button.click(run_test_power, inputs=[model_name, input_text, input_text], outputs=output)
|