LouisLi commited on
Commit
b81fd56
·
verified ·
1 Parent(s): 3e0cbae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -16
app.py CHANGED
@@ -1928,22 +1928,24 @@ def create_ui():
1928
 
1929
  with gr.Column(scale=6):
1930
  with gr.Column(visible=False) as modules_not_need_gpt:
1931
- with gr.Row():
1932
- naritive = gr.Radio(
1933
- choices=["Narrator", "Artist","In-Situ"],
1934
- value="Narrator",
1935
- label="Select Mode",
1936
- scale=5,
1937
- interactive=True)
1938
-
1939
- add_button = gr.Button(value="Extend Area", interactive=True,elem_classes="tools_button_add",icon=add_icon_path)
1940
- minus_button = gr.Button(value="Remove Area", interactive=True,elem_classes="tools_button",icon=minus_icon_path)
1941
- clear_button_click = gr.Button(value="Reset", interactive=True,elem_classes="tools_button",icon="assets/icons/recycle.png")
1942
-
1943
- auto_play = gr.Checkbox(
1944
- label="Check to autoplay audio", value=True, elem_classes="custom-autoplay",visible=False)
1945
- output_audio = gr.HTML(
1946
- label="Synthesised Audio", elem_classes="custom-output", visible=False)
 
 
1947
  with gr.Tab("Base(GPT Power)",visible=False) as base_tab:
1948
  image_input_base = gr.Image(type="pil", interactive=True, elem_classes="image_upload",height=650)
1949
  with gr.Row():
 
1928
 
1929
  with gr.Column(scale=6):
1930
  with gr.Column(visible=False) as modules_not_need_gpt:
1931
+ with gr.Blocks(css=".gradio-container .radio-item:nth-child(1) label { color: blue; } .gradio-container .radio-item:nth-child(2) label { color: orange; } .gradio-container .radio-item:nth-child(3) label { color: green; }"):
1932
+
1933
+ with gr.Row():
1934
+ naritive = gr.Radio(
1935
+ choices=["Narrator", "Artist","In-Situ"],
1936
+ value="Narrator",
1937
+ label="Select Mode",
1938
+ scale=5,
1939
+ interactive=True)
1940
+
1941
+ add_button = gr.Button(value="Extend Area", interactive=True,elem_classes="tools_button_add",icon=add_icon_path)
1942
+ minus_button = gr.Button(value="Remove Area", interactive=True,elem_classes="tools_button",icon=minus_icon_path)
1943
+ clear_button_click = gr.Button(value="Reset", interactive=True,elem_classes="tools_button",icon="assets/icons/recycle.png")
1944
+
1945
+ auto_play = gr.Checkbox(
1946
+ label="Check to autoplay audio", value=True, elem_classes="custom-autoplay",visible=False)
1947
+ output_audio = gr.HTML(
1948
+ label="Synthesised Audio", elem_classes="custom-output", visible=False)
1949
  with gr.Tab("Base(GPT Power)",visible=False) as base_tab:
1950
  image_input_base = gr.Image(type="pil", interactive=True, elem_classes="image_upload",height=650)
1951
  with gr.Row():