Update app.py
Browse files
app.py
CHANGED
|
@@ -830,8 +830,10 @@ def text_to_image(prompt, model_id, steps, guidance_scale, progress=gr.Progress(
|
|
| 830 |
try:
|
| 831 |
if not prompt or not prompt.strip():
|
| 832 |
return None, "Bitte einen Prompt eingeben"
|
| 833 |
-
|
|
|
|
| 834 |
print(f"π Starte Generierung mit Modell: {model_id}")
|
|
|
|
| 835 |
print(f"π Prompt: {prompt}")
|
| 836 |
|
| 837 |
# Automatische negative Prompts generieren
|
|
@@ -933,7 +935,9 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
|
|
| 933 |
import time, random
|
| 934 |
start_time = time.time()
|
| 935 |
|
|
|
|
| 936 |
print(f"π Img2Img Start β Modus: {mode}")
|
|
|
|
| 937 |
print(f"π Einstellungen: Strength: {strength}, Steps: {steps}, Guidance: {guidance_scale}")
|
| 938 |
print(f"π Prompt: {prompt}")
|
| 939 |
print(f"π« Negativ-Prompt: {neg_prompt}")
|
|
|
|
| 830 |
try:
|
| 831 |
if not prompt or not prompt.strip():
|
| 832 |
return None, "Bitte einen Prompt eingeben"
|
| 833 |
+
|
| 834 |
+
print("\n" + "="*80)
|
| 835 |
print(f"π Starte Generierung mit Modell: {model_id}")
|
| 836 |
+
print("\n" + "="*80)
|
| 837 |
print(f"π Prompt: {prompt}")
|
| 838 |
|
| 839 |
# Automatische negative Prompts generieren
|
|
|
|
| 935 |
import time, random
|
| 936 |
start_time = time.time()
|
| 937 |
|
| 938 |
+
print("\n" + "="*80)
|
| 939 |
print(f"π Img2Img Start β Modus: {mode}")
|
| 940 |
+
print("\n" + "="*80)
|
| 941 |
print(f"π Einstellungen: Strength: {strength}, Steps: {steps}, Guidance: {guidance_scale}")
|
| 942 |
print(f"π Prompt: {prompt}")
|
| 943 |
print(f"π« Negativ-Prompt: {neg_prompt}")
|