niulx commited on
Commit
84c1347
1 Parent(s): 31f50c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- 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
 
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