Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,16 @@ last_cn_on = False
|
|
59 |
|
60 |
MAX_SEED = 2**32-1
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
def unload_lora():
|
63 |
global pipe, pipe_i2i, pipe_ip
|
64 |
try:
|
@@ -871,6 +881,17 @@ css = '''
|
|
871 |
.desc [src$='#float'] { float: right; margin: 20px; }
|
872 |
'''
|
873 |
with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=css, delete_cache=(60, 3600)) as app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
with gr.Tab("FLUX LoRA the Explorer"):
|
875 |
title = gr.HTML(
|
876 |
"""<h1><img src="https://huggingface.co/spaces/John6666/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA">FLUX LoRA Explorer Mod Reloaded</h1>""",
|
|
|
59 |
|
60 |
MAX_SEED = 2**32-1
|
61 |
|
62 |
+
# Debug-Log-Feld hinzufügen
|
63 |
+
debug_log = gr.Textbox(label="Debug Log", interactive=False, placeholder="Logs erscheinen hier...", lines=15)
|
64 |
+
|
65 |
+
# Hilfsfunktion zum Anhängen von Logs
|
66 |
+
def append_debug_log(log_text, current_logs=""):
|
67 |
+
"""Fügt einen neuen Log-Eintrag hinzu."""
|
68 |
+
updated_logs = current_logs + f"\n{log_text}"
|
69 |
+
return updated_logs
|
70 |
+
|
71 |
+
|
72 |
def unload_lora():
|
73 |
global pipe, pipe_i2i, pipe_ip
|
74 |
try:
|
|
|
881 |
.desc [src$='#float'] { float: right; margin: 20px; }
|
882 |
'''
|
883 |
with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=css, delete_cache=(60, 3600)) as app:
|
884 |
+
|
885 |
+
with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=css, delete_cache=(60, 3600)) as app:
|
886 |
+
# Debug-Log ganz oben hinzufügen
|
887 |
+
debug_log = gr.Textbox(
|
888 |
+
label="Debug Log",
|
889 |
+
interactive=False,
|
890 |
+
placeholder="Hier erscheinen Debug-Informationen...",
|
891 |
+
lines=10,
|
892 |
+
visible=True # Sichtbar machen
|
893 |
+
)
|
894 |
+
|
895 |
with gr.Tab("FLUX LoRA the Explorer"):
|
896 |
title = gr.HTML(
|
897 |
"""<h1><img src="https://huggingface.co/spaces/John6666/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA">FLUX LoRA Explorer Mod Reloaded</h1>""",
|