Spaces:
Sleeping
Sleeping
clean execute_task
Browse files
app.py
CHANGED
|
@@ -118,8 +118,9 @@ def generate_image(setup_args, num_iterations):
|
|
| 118 |
def run_main():
|
| 119 |
thread_status["running"] = True # Mark thread as running
|
| 120 |
try:
|
| 121 |
-
|
| 122 |
-
args, trainer, device, dtype, shape, enable_grad, settings, progress_callback
|
|
|
|
| 123 |
except torch.cuda.OutOfMemoryError as e:
|
| 124 |
print(f"CUDA Out of Memory Error: {e}")
|
| 125 |
error_status["error_occurred"] = True
|
|
|
|
| 118 |
def run_main():
|
| 119 |
thread_status["running"] = True # Mark thread as running
|
| 120 |
try:
|
| 121 |
+
execute_task(
|
| 122 |
+
args, trainer, device, dtype, shape, enable_grad, settings, progress_callback
|
| 123 |
+
)
|
| 124 |
except torch.cuda.OutOfMemoryError as e:
|
| 125 |
print(f"CUDA Out of Memory Error: {e}")
|
| 126 |
error_status["error_occurred"] = True
|