Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,13 +126,15 @@ def generate(image, prompt_user, progress=gr.Progress(track_tqdm=True)):
|
|
| 126 |
print(error_message) # For logging
|
| 127 |
raise gr.Error(error_message)
|
| 128 |
|
|
|
|
|
|
|
| 129 |
try:
|
| 130 |
logo_dupli = duplicate_horizontally(cropped_image)
|
| 131 |
except Exception as e:
|
| 132 |
error_message = f"Error during duplication: {str(e)}"
|
| 133 |
print(error_message) # For logging
|
| 134 |
raise gr.Error(error_message)
|
| 135 |
-
|
| 136 |
print("just before getting into pipe")
|
| 137 |
# Generate output
|
| 138 |
out = pipe(
|
|
|
|
| 126 |
print(error_message) # For logging
|
| 127 |
raise gr.Error(error_message)
|
| 128 |
|
| 129 |
+
print("Size after cropping", cropped_image.size)
|
| 130 |
+
|
| 131 |
try:
|
| 132 |
logo_dupli = duplicate_horizontally(cropped_image)
|
| 133 |
except Exception as e:
|
| 134 |
error_message = f"Error during duplication: {str(e)}"
|
| 135 |
print(error_message) # For logging
|
| 136 |
raise gr.Error(error_message)
|
| 137 |
+
|
| 138 |
print("just before getting into pipe")
|
| 139 |
# Generate output
|
| 140 |
out = pipe(
|