Spaces:
Running on Zero
Running on Zero
get_duration as spaces decorator for built-in dynamic GPU limit
Browse files
app.py
CHANGED
|
@@ -149,8 +149,8 @@ with gr.Blocks(title="RFD3 Test") as demo:
|
|
| 149 |
if config_upload is None:
|
| 150 |
return gr.update(), None, None
|
| 151 |
else:
|
| 152 |
-
generate_with_correct_time_limit = generation_with_input_config_factory(max_duration)
|
| 153 |
-
textbox_update, gen_directory, gen_results =
|
| 154 |
print(textbox_update)
|
| 155 |
return textbox_update, gen_directory, gen_results
|
| 156 |
|
|
|
|
| 149 |
if config_upload is None:
|
| 150 |
return gr.update(), None, None
|
| 151 |
else:
|
| 152 |
+
#generate_with_correct_time_limit = generation_with_input_config_factory(max_duration)
|
| 153 |
+
textbox_update, gen_directory, gen_results = generation_with_input_config(config_upload, scaffold_upload, num_batches, num_designs_per_batch, extra_args, max_duration)
|
| 154 |
print(textbox_update)
|
| 155 |
return textbox_update, gen_directory, gen_results
|
| 156 |
|