Spaces:
Running
Running
Update app.py
Browse files
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.
|
| 1932 |
-
|
| 1933 |
-
|
| 1934 |
-
|
| 1935 |
-
|
| 1936 |
-
|
| 1937 |
-
|
| 1938 |
-
|
| 1939 |
-
|
| 1940 |
-
|
| 1941 |
-
|
| 1942 |
-
|
| 1943 |
-
|
| 1944 |
-
|
| 1945 |
-
|
| 1946 |
-
label="
|
|
|
|
|
|
|
| 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():
|