Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -245,9 +245,8 @@ with gr.Blocks() as demo:
|
|
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 |
-
|
249 |
-
|
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 |
|
252 |
|
253 |
|
|
|
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 |
+
gr.Error("e")
|
249 |
+
return "Error: use a smaller batch size or try latter.",gr.Button("Run Editing (Check log for progress.)",interactive = False)
|
|
|
250 |
|
251 |
|
252 |
|