jer233 commited on
Commit
8946536
·
verified ·
1 Parent(s): b2f5f8e

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +2 -2
demo.py CHANGED
@@ -69,7 +69,7 @@ css = """
69
  }
70
 
71
  /* Set button widths to match the Select Model width */
72
- .gradio-row button {
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)