Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
@@ -71,7 +71,7 @@ css = """
|
|
71 |
/* Set button widths to match the Select Model width */
|
72 |
.button {
|
73 |
width: 250px; /* Same as the select box width */
|
74 |
-
Height:
|
75 |
}
|
76 |
"""
|
77 |
|
@@ -113,7 +113,7 @@ with gr.Blocks(css=css) as app:
|
|
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)
|
119 |
clear_button.click(lambda: ("", ""), inputs=[], outputs=[input_text, output])
|
|
|
71 |
/* Set button widths to match the Select Model width */
|
72 |
.button {
|
73 |
width: 250px; /* Same as the select box width */
|
74 |
+
Height: 100px;
|
75 |
}
|
76 |
"""
|
77 |
|
|
|
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", elem_classes=["button"])
|
117 |
|
118 |
submit_button.click(run_test_power, inputs=[model_name, input_text, input_text], outputs=output)
|
119 |
clear_button.click(lambda: ("", ""), inputs=[], outputs=[input_text, output])
|