Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,17 +187,18 @@ def generate_scene(
|
|
| 187 |
progress=gr.Progress(track_tqdm=True)
|
| 188 |
):
|
| 189 |
text_prompt_processed = (text_prompt or "").strip()
|
| 190 |
-
|
|
|
|
|
|
|
| 191 |
if not text_prompt_processed:
|
| 192 |
raise gr.Error("Please enter a prompt.")
|
| 193 |
|
| 194 |
if not flux_model and not image:
|
| 195 |
-
generate_image(text_prompt)
|
| 196 |
print("no image provived will")
|
| 197 |
#raise gr.Error("Please provide an image")
|
| 198 |
|
| 199 |
-
|
| 200 |
-
session_id = uuid.uuid4().hex
|
| 201 |
|
| 202 |
print(f"{session_id} is generating scene with {sample_steps} steps")
|
| 203 |
|
|
|
|
| 187 |
progress=gr.Progress(track_tqdm=True)
|
| 188 |
):
|
| 189 |
text_prompt_processed = (text_prompt or "").strip()
|
| 190 |
+
if session_id is None:
|
| 191 |
+
session_id = uuid.uuid4().hex
|
| 192 |
+
|
| 193 |
if not text_prompt_processed:
|
| 194 |
raise gr.Error("Please enter a prompt.")
|
| 195 |
|
| 196 |
if not flux_model and not image:
|
| 197 |
+
generate_image(text_prompt,session_id)
|
| 198 |
print("no image provived will")
|
| 199 |
#raise gr.Error("Please provide an image")
|
| 200 |
|
| 201 |
+
|
|
|
|
| 202 |
|
| 203 |
print(f"{session_id} is generating scene with {sample_steps} steps")
|
| 204 |
|