Deadmon commited on
Commit
a99fecc
1 Parent(s): 0f84b00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env python
2
-
3
  import os
4
  import random
5
 
@@ -208,10 +206,6 @@ def run(
208
  ) -> PIL.Image.Image:
209
  # Get the composite image from the EditorValue dict
210
  composite_image = image['composite']
211
-
212
- if composite_image is None:
213
- raise gr.Error("Please provide an input image.")
214
-
215
  width, height = composite_image.size
216
 
217
  # Calculate new dimensions to fit within 1024x1024 while maintaining aspect ratio
@@ -354,4 +348,4 @@ with gr.Blocks(css="style.css", js=js_func) as demo:
354
 
355
 
356
 
357
- demo.queue().launch(show_error=True)
 
 
 
1
  import os
2
  import random
3
 
 
206
  ) -> PIL.Image.Image:
207
  # Get the composite image from the EditorValue dict
208
  composite_image = image['composite']
 
 
 
 
209
  width, height = composite_image.size
210
 
211
  # Calculate new dimensions to fit within 1024x1024 while maintaining aspect ratio
 
348
 
349
 
350
 
351
+ demo.queue().launch()