Spaces:
Running
Running
limit demo target length to minimum value
Browse files
app_df.py
CHANGED
|
@@ -152,7 +152,7 @@ if is_shared_ui is False:
|
|
| 152 |
|
| 153 |
length_options = []
|
| 154 |
if is_shared_ui is True:
|
| 155 |
-
length_options = ["4"
|
| 156 |
else:
|
| 157 |
length_options = ["4", "10", "15", "30", "60"]
|
| 158 |
|
|
@@ -183,7 +183,7 @@ with gr.Blocks() as demo:
|
|
| 183 |
with gr.Row():
|
| 184 |
if is_shared_ui:
|
| 185 |
target_length = gr.Radio(label="Video length target", choices=length_options, value="4")
|
| 186 |
-
forbidden_length = gr.Radio(label="Available target on duplicated instance", choices=["15","30","60"], value=None, interactive=False)
|
| 187 |
else:
|
| 188 |
target_length = gr.Radio(label="Video length target", choices=length_options, value="4")
|
| 189 |
|
|
|
|
| 152 |
|
| 153 |
length_options = []
|
| 154 |
if is_shared_ui is True:
|
| 155 |
+
length_options = ["4"]
|
| 156 |
else:
|
| 157 |
length_options = ["4", "10", "15", "30", "60"]
|
| 158 |
|
|
|
|
| 183 |
with gr.Row():
|
| 184 |
if is_shared_ui:
|
| 185 |
target_length = gr.Radio(label="Video length target", choices=length_options, value="4")
|
| 186 |
+
forbidden_length = gr.Radio(label="Available target on duplicated instance", choices=["10","15","30","60"], value=None, interactive=False)
|
| 187 |
else:
|
| 188 |
target_length = gr.Radio(label="Video length target", choices=length_options, value="4")
|
| 189 |
|