DigiP-AI commited on
Commit
be0114a
·
verified ·
1 Parent(s): 3858205

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -20
app.py CHANGED
@@ -314,27 +314,26 @@ with gr.Blocks(theme=theme, css=css) as app:
314
  }
315
  }
316
  model=("models/dvyio/flux-lora-film-noir")
317
- with gr.Row(model):
318
- text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
319
 
320
- with gr.Row(model):
321
- with gr.Accordion("Advanced Settings", open=False):
322
- negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="((((out of frame))), deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
323
- with gr.Row(model):
324
- width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
325
- height = gr.Slider(label="Height", value=1024, minimum=64, maximum=1216, step=32)
326
- steps = gr.Slider(label="Sampling steps", value=28, minimum=1, maximum=100, step=1)
327
- cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
328
- method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DPM Fast" "Euler", "Euler a", "Euler+beta", "Heun", "DDIM", "PLMS", "UniPC"])
329
- strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
330
- seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
331
- with gr.Row(model):
332
- with gr.Accordion("Seed", open=False):
333
- seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
334
- with gr.Row(model):
335
- text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
336
- with gr.Row(model):
337
- image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
338
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
339
 
340
 
 
314
  }
315
  }
316
  model=("models/dvyio/flux-lora-film-noir")
317
+ with gr.Row(model):
318
+ text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
319
 
320
+ with gr.Row(model):
321
+ with gr.Accordion("Advanced Settings", open=False):
322
+ negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="((((out of frame))), deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
323
+ with gr.Row(model):
324
+ width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1216, step=32)
325
+ height = gr.Slider(label="Height", value=1024, minimum=64, maximum=1216, step=32)
326
+ steps = gr.Slider(label="Sampling steps", value=28, minimum=1, maximum=100, step=1)
327
+ cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
328
+ strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
329
+ seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
330
+ with gr.Row(model):
331
+ with gr.Accordion("Seed", open=False):
332
+ seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
333
+ with gr.Row(model):
334
+ text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
335
+ with gr.Row(model):
336
+ image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
 
337
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
338
 
339