Alexander Bagus commited on
Commit
f0f736a
·
1 Parent(s): 2abab37
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -105,7 +105,7 @@ def generate_lora(
105
 
106
  save_file(lora, lora_path)
107
 
108
- return lora_name, gr.update(visible=True, value=lora_path), gr.update(interactive=True)
109
 
110
  @spaces.GPU
111
  def generate_image(
@@ -158,9 +158,7 @@ h3{
158
  text-align: center;
159
  display:block;
160
  }
161
- #imagen-container {
162
- padding: 12px;
163
- }
164
  """
165
 
166
 
@@ -186,7 +184,7 @@ with gr.Blocks() as demo:
186
 
187
  with gr.Column():
188
  lora_name = gr.Textbox(label="Generated LoRA path",lines=2, interactive=False)
189
- lora_download = gr.DownloadButton(label=f"Download LoRA", visible=False)
190
  with gr.Column(elem_id='imagen-container') as imagen_container:
191
  gr.Markdown("### After your LoRA is ready, you can try generate image here.")
192
  with gr.Row():
 
105
 
106
  save_file(lora, lora_path)
107
 
108
+ return lora_name, gr.update(interactive=True, value=lora_path), gr.update(interactive=True)
109
 
110
  @spaces.GPU
111
  def generate_image(
 
158
  text-align: center;
159
  display:block;
160
  }
161
+
 
 
162
  """
163
 
164
 
 
184
 
185
  with gr.Column():
186
  lora_name = gr.Textbox(label="Generated LoRA path",lines=2, interactive=False)
187
+ lora_download = gr.DownloadButton(label=f"Download LoRA", interactive=False)
188
  with gr.Column(elem_id='imagen-container') as imagen_container:
189
  gr.Markdown("### After your LoRA is ready, you can try generate image here.")
190
  with gr.Row():