Update app.py
Browse files
app.py
CHANGED
@@ -244,7 +244,8 @@ with gr.Blocks() as demo:
|
|
244 |
run_optimization()
|
245 |
gr.Info("Optimization Finished! Move to the next step.")
|
246 |
return "Optimization finished! Move to the next step.",gr.Button("Run Editing (Check log for progress.)",interactive = True)
|
247 |
-
except:
|
|
|
248 |
gr.Warning("CUDA out of memory, use a smaller batch size or try another picture.")
|
249 |
return "CUDA out of memory, use a smaller batch size or try another picture.",gr.Button("Run Editing (Check log for progress.)",interactive = False)
|
250 |
|
|
|
244 |
run_optimization()
|
245 |
gr.Info("Optimization Finished! Move to the next step.")
|
246 |
return "Optimization finished! Move to the next step.",gr.Button("Run Editing (Check log for progress.)",interactive = True)
|
247 |
+
except Exception as e:
|
248 |
+
print(e)
|
249 |
gr.Warning("CUDA out of memory, use a smaller batch size or try another picture.")
|
250 |
return "CUDA out of memory, use a smaller batch size or try another picture.",gr.Button("Run Editing (Check log for progress.)",interactive = False)
|
251 |
|