Update app.py
Browse files
app.py
CHANGED
@@ -541,6 +541,8 @@ def run_lora(prompt, cfg_scale, steps, selected_info_1, selected_info_2, selecte
|
|
541 |
if final_image is None:
|
542 |
print("No final image generated.") # Debugging statement
|
543 |
yield final_image, seed, gr.update(value=progress_bar, visible=False)
|
|
|
|
|
544 |
except Exception as e:
|
545 |
print(f"Error during image generation: {e}") # Error handling
|
546 |
raise gr.Error("An error occurred during image generation.")
|
|
|
541 |
if final_image is None:
|
542 |
print("No final image generated.") # Debugging statement
|
543 |
yield final_image, seed, gr.update(value=progress_bar, visible=False)
|
544 |
+
##
|
545 |
+
yield None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None # Placeholder for missing outputs
|
546 |
except Exception as e:
|
547 |
print(f"Error during image generation: {e}") # Error handling
|
548 |
raise gr.Error("An error occurred during image generation.")
|