Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,6 +155,7 @@ def generate_image(text_prompt, session_id, image_height = 1024, image_width = 1
|
|
| 155 |
"""
|
| 156 |
print("image generation used")
|
| 157 |
text_prompt = clean_text(text_prompt or "")
|
|
|
|
| 158 |
|
| 159 |
# If flux_model isn't loaded, fall back to example image (if available)
|
| 160 |
output_dir = _ensure_output_dir(session_id)
|
|
@@ -228,7 +229,7 @@ def generate_scene(
|
|
| 228 |
|
| 229 |
if not text_prompt_processed:
|
| 230 |
raise gr.Error("Please enter a prompt.")
|
| 231 |
-
|
| 232 |
# If user did not supply an image (None or empty), try to generate one and use it.
|
| 233 |
if not image:
|
| 234 |
print("No image provided; attempting to generate one.")
|
|
|
|
| 155 |
"""
|
| 156 |
print("image generation used")
|
| 157 |
text_prompt = clean_text(text_prompt or "")
|
| 158 |
+
print(text_prompt)
|
| 159 |
|
| 160 |
# If flux_model isn't loaded, fall back to example image (if available)
|
| 161 |
output_dir = _ensure_output_dir(session_id)
|
|
|
|
| 229 |
|
| 230 |
if not text_prompt_processed:
|
| 231 |
raise gr.Error("Please enter a prompt.")
|
| 232 |
+
print(text_prompt)
|
| 233 |
# If user did not supply an image (None or empty), try to generate one and use it.
|
| 234 |
if not image:
|
| 235 |
print("No image provided; attempting to generate one.")
|