Fabrice-TIERCELIN commited on
Commit
0b5e3fe
·
verified ·
1 Parent(s): 83f88ca

This PR adds color code for buttons

Browse files

Add the feature of standard color code for the Start and the End buttons. It helps the users to understand how the space works.

Click on _Merge_ to add this feature.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -441,8 +441,8 @@ with block:
441
  example_quick_prompts.click(lambda x: x[0], inputs=[example_quick_prompts], outputs=prompt, show_progress=False, queue=False)
442
 
443
  with gr.Row():
444
- start_button = gr.Button(value="Start Generation")
445
- end_button = gr.Button(value="End Generation", interactive=False)
446
 
447
  total_second_length = gr.Slider(label="Total Video Length (Seconds)", minimum=1, maximum=5, value=2, step=0.1)
448
  with gr.Group():
 
441
  example_quick_prompts.click(lambda x: x[0], inputs=[example_quick_prompts], outputs=prompt, show_progress=False, queue=False)
442
 
443
  with gr.Row():
444
+ start_button = gr.Button(value="Start Generation", variant="primary")
445
+ end_button = gr.Button(value="End Generation", variant="stop", interactive=False)
446
 
447
  total_second_length = gr.Slider(label="Total Video Length (Seconds)", minimum=1, maximum=5, value=2, step=0.1)
448
  with gr.Group():