Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
f92524a
1
Parent(s):
b5bc414
22
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def generate_lora(
|
|
| 88 |
|
| 89 |
save_file(lora, lora_path)
|
| 90 |
|
| 91 |
-
return lora_path, lora_url, True
|
| 92 |
|
| 93 |
@spaces.GPU
|
| 94 |
def generate_image(
|
|
@@ -140,7 +140,7 @@ with gr.Blocks() as demo:
|
|
| 140 |
with gr.Column():
|
| 141 |
lora_path = gr.Textbox(label="Generated LoRA path",lines=2, interactive=False)
|
| 142 |
lora_download = gr.DownloadButton(label=f"Download LoRA", visible=has_lora)
|
| 143 |
-
with gr.
|
| 144 |
gr.Markdown("Your LoRA is ready! Now, try generating some images.")
|
| 145 |
with gr.Row():
|
| 146 |
with gr.Column():
|
|
@@ -210,7 +210,7 @@ with gr.Blocks() as demo:
|
|
| 210 |
inputs=[
|
| 211 |
input_images
|
| 212 |
],
|
| 213 |
-
outputs=[lora_path, lora_download,
|
| 214 |
)
|
| 215 |
|
| 216 |
|
|
|
|
| 88 |
|
| 89 |
save_file(lora, lora_path)
|
| 90 |
|
| 91 |
+
return lora_path, lora_url, gr.Column(visible=True)
|
| 92 |
|
| 93 |
@spaces.GPU
|
| 94 |
def generate_image(
|
|
|
|
| 140 |
with gr.Column():
|
| 141 |
lora_path = gr.Textbox(label="Generated LoRA path",lines=2, interactive=False)
|
| 142 |
lora_download = gr.DownloadButton(label=f"Download LoRA", visible=has_lora)
|
| 143 |
+
with gr.Column(visible=False) as imagen_container:
|
| 144 |
gr.Markdown("Your LoRA is ready! Now, try generating some images.")
|
| 145 |
with gr.Row():
|
| 146 |
with gr.Column():
|
|
|
|
| 210 |
inputs=[
|
| 211 |
input_images
|
| 212 |
],
|
| 213 |
+
outputs=[lora_path, lora_download, imagen_container],
|
| 214 |
)
|
| 215 |
|
| 216 |
|