nftnik commited on
Commit
899ab35
·
verified ·
1 Parent(s): 217aeab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -249,7 +249,7 @@ def remove_custom_lora():
249
  run_lora.zerogpu = True
250
 
251
  css = '''
252
- #gen_btn{height: 100%}
253
  #gen_column{align-self: stretch}
254
  #title{text-align: center}
255
  #title h1{font-size: 3em; display:inline-flex; align-items:center}
@@ -262,12 +262,12 @@ css = '''
262
  #progress{height:30px}
263
  #progress .generating{display:none}
264
  .progress-container {width: 100%;height: 30px;background-color: #f0f0f0;border-radius: 15px;overflow: hidden;margin-bottom: 20px}
265
- .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
266
  '''
267
  font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
268
  with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60)) as app:
269
  title = gr.HTML(
270
- """<h1><img src="https://huggingface.co/spaces/multimodalart/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA"> FLUX LoRA the Explorer</h1>""",
271
  elem_id="title",
272
  )
273
  selected_index = gr.State(None)
@@ -288,8 +288,8 @@ with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60))
288
  show_share_button=False
289
  )
290
  with gr.Group():
291
- custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path", placeholder="multimodalart/vintage-ads-flux")
292
- gr.Markdown("[Check the list of FLUX LoRas](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
293
  custom_lora_info = gr.HTML(visible=False)
294
  custom_lora_button = gr.Button("Remove custom LoRA", visible=False)
295
  with gr.Column():
@@ -300,7 +300,7 @@ with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60))
300
  with gr.Accordion("Advanced Settings", open=False):
301
  with gr.Row():
302
  input_image = gr.Image(label="Input image", type="filepath")
303
- image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=0.75)
304
  with gr.Column():
305
  with gr.Row():
306
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, step=0.5, value=3.5)
 
249
  run_lora.zerogpu = True
250
 
251
  css = '''
252
+ #gen_btn{height: 100%; background-color: #ff653a !important; border-color: #ff653a !important; color: white;}
253
  #gen_column{align-self: stretch}
254
  #title{text-align: center}
255
  #title h1{font-size: 3em; display:inline-flex; align-items:center}
 
262
  #progress{height:30px}
263
  #progress .generating{display:none}
264
  .progress-container {width: 100%;height: 30px;background-color: #f0f0f0;border-radius: 15px;overflow: hidden;margin-bottom: 20px}
265
+ .progress-bar {height: 100%;background-color: #ff653a;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
266
  '''
267
  font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial", "sans-serif"]
268
  with gr.Blocks(theme=gr.themes.Soft(font=font), css=css, delete_cache=(60, 60)) as app:
269
  title = gr.HTML(
270
+ """<h1><img src="https://huggingface.co/spaces/multimodalart/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA">N!K FLUX LoRA Explorer</h1>""",
271
  elem_id="title",
272
  )
273
  selected_index = gr.State(None)
 
288
  show_share_button=False
289
  )
290
  with gr.Group():
291
+ custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path", placeholder="nftnik/NFTNIK-FLUX.1-dev-LoRA")
292
+ gr.Markdown("", elem_id="lora_list")
293
  custom_lora_info = gr.HTML(visible=False)
294
  custom_lora_button = gr.Button("Remove custom LoRA", visible=False)
295
  with gr.Column():
 
300
  with gr.Accordion("Advanced Settings", open=False):
301
  with gr.Row():
302
  input_image = gr.Image(label="Input image", type="filepath")
303
+ image_strength = gr.Slider(label="Denoise Strength", info="Lower means more image influence", minimum=0.1, maximum=1.0, step=0.01, value=1)
304
  with gr.Column():
305
  with gr.Row():
306
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, step=0.5, value=3.5)