Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -333,7 +333,7 @@ if os.path.exists(DEFAULT_MATERIALS_CSV):
|
|
| 333 |
else:
|
| 334 |
initial_df.to_csv(DEFAULT_MATERIALS_CSV, index=False)
|
| 335 |
|
| 336 |
-
|
| 337 |
def run_autoforge_process(cmd, log_path):
|
| 338 |
"""Run AutoForge in-process and stream its console output to *log_path*."""
|
| 339 |
from joblib import parallel_backend
|
|
@@ -681,6 +681,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 681 |
)
|
| 682 |
|
| 683 |
# --- Backend Function for Running the Script ---
|
|
|
|
| 684 |
def execute_autoforge_script(
|
| 685 |
current_filaments_df_state_val, input_image, *accordion_param_values
|
| 686 |
):
|
|
|
|
| 333 |
else:
|
| 334 |
initial_df.to_csv(DEFAULT_MATERIALS_CSV, index=False)
|
| 335 |
|
| 336 |
+
|
| 337 |
def run_autoforge_process(cmd, log_path):
|
| 338 |
"""Run AutoForge in-process and stream its console output to *log_path*."""
|
| 339 |
from joblib import parallel_backend
|
|
|
|
| 681 |
)
|
| 682 |
|
| 683 |
# --- Backend Function for Running the Script ---
|
| 684 |
+
@spaces.GPU(duration=120)
|
| 685 |
def execute_autoforge_script(
|
| 686 |
current_filaments_df_state_val, input_image, *accordion_param_values
|
| 687 |
):
|