DigiP-AI commited on
Commit
c16e8c4
·
verified ·
1 Parent(s): b12b6dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -169,13 +169,13 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
169
  with gr.Accordion("🎨 Lora trigger words", open=False):
170
  gr.Markdown("""
171
  - **sdxl-realistic**: szn style
172
- - **stylesdxl-cyberpunk**: szn style
173
  - **SD3.5-Turbo-Realism-2.0-LoRA**: Turbo Realism
174
- - **surreal-harmony**: Surreal Harmony
175
  - **extremely-detailed**: extremely detailed
176
- - **dark-fantasy**: Dark Fantasy
177
  - **Flux.1-Dev-LoRA-HDR-Realism**: HDR
178
- - **jules-bastien-lepage-style**: Jules Bastien Lepage Style
179
  - **john-singer-sargent-style**: John Singer Sargent Style
180
  - **alphonse-mucha-style**: Alphonse Mucha Style
181
  - **ultra-realistic-illustration**: ultra realistic illustration
@@ -186,10 +186,10 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
186
  """)
187
 
188
  with gr.Row():
189
- custom_lora = gr.Dropdown([" ", "jwu114/lora-sdxl-realistic", "issaccyj/lora-sdxl-cyberpunk", "prithivMLmods/SD3.5-Turbo-Realism-2.0-LoRA", "hugovntr/flux-schnell-realism", "fofr/sdxl-deep-down", "KappaNeuro/surreal-harmony", "ntc-ai/SDXL-LoRA-slider.extremely-detailed", "prithivMLmods/Canopus-LoRA-Flux-FaceRealism", "KappaNeuro/dark-fantasy", "prithivMLmods/Flux.1-Dev-LoRA-HDR-Realism", "KappaNeuro/jules-bastien-lepage-style", "KappaNeuro/john-singer-sargent-style", "KappaNeuro/alphonse-mucha-style", "ntc-ai/SDXL-LoRA-slider.ultra-realistic-illustration", "ntc-ai/SDXL-LoRA-slider.eye-catching", "KappaNeuro/john-constable-style", "dvyio/flux-lora-film-noir", "dvyio/flux-lora-pro-headshot"], label="Custom LoRA",)
190
  with gr.Row():
191
  with gr.Accordion("⚙️ Advanced Settings", open=False, elem_id="settings-container"):
192
- negative_prompt = gr.Textbox(label="Negative Prompt", lines=5, placeholder="What should not be in the image", value=" Bad anatomy, Bad proportions, Deformed, Disconnected limbs, Disfigured, Extra arms, Extra limbs, Extra hands, Fused fingers, Gross proportions, Long neck, Malformed limbs, Mutated, Mutated hands, Mutated limbs, Missing arms, Missing fingers, Poorly drawn hands, Poorly drawn face ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off, low contrast, underexposed, overexposed, bad art, beginner, amateur, distorted face, blurry, draft, grainy, text, logo, watermark, banner, extra digits, signature, unprompted-nsfw")
193
  with gr.Row():
194
  width = gr.Slider(label="Image Width", value=896, minimum=64, maximum=1216, step=32)
195
  height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
@@ -208,7 +208,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
208
  clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt)
209
 
210
  with gr.Row():
211
- image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
212
  with gr.Row():
213
  clear_btn = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
214
  clear_btn.click(clear, inputs=[], outputs=[image_output])
@@ -228,6 +228,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
228
  image_button = gr.Button("Run", variant='primary')
229
  image_button.click(flip_image, inputs=image_input, outputs=image_output, concurrency_limit=2)
230
 
231
- app.queue() # <-- Sets up a queue with default parameters
232
  if __name__ == "__main__":
233
- app.launch(show_api=False, share=True)
 
 
169
  with gr.Accordion("🎨 Lora trigger words", open=False):
170
  gr.Markdown("""
171
  - **sdxl-realistic**: szn style
172
+ - **Flux-Realism-FineDetailed**: Fine Detailed
173
  - **SD3.5-Turbo-Realism-2.0-LoRA**: Turbo Realism
174
+ - **Canopus-LoRA-Flux-UltraRealism-2.0**: Ultra realistic
175
  - **extremely-detailed**: extremely detailed
176
+ - **SD3.5-Large-Photorealistic-LoRA**: photorealistic
177
  - **Flux.1-Dev-LoRA-HDR-Realism**: HDR
178
+ - **prithivMLmods/Ton618-Epic-Realism-Flux-LoRA**: Epic Realism
179
  - **john-singer-sargent-style**: John Singer Sargent Style
180
  - **alphonse-mucha-style**: Alphonse Mucha Style
181
  - **ultra-realistic-illustration**: ultra realistic illustration
 
186
  """)
187
 
188
  with gr.Row():
189
+ custom_lora = gr.Dropdown([" ", "jwu114/lora-sdxl-realistic", "prithivMLmods/Flux-Realism-FineDetailed", "prithivMLmods/SD3.5-Turbo-Realism-2.0-LoRA", "hugovntr/flux-schnell-realism", "fofr/sdxl-deep-down", "prithivMLmods/Canopus-LoRA-Flux-UltraRealism-2.0", "ntc-ai/SDXL-LoRA-slider.extremely-detailed", "prithivMLmods/Canopus-LoRA-Flux-FaceRealism", "prithivMLmods/SD3.5-Large-Photorealistic-LoRA", "prithivMLmods/Flux.1-Dev-LoRA-HDR-Realism", "prithivMLmods/Ton618-Epic-Realism-Flux-LoRA", "KappaNeuro/john-singer-sargent-style", "KappaNeuro/alphonse-mucha-style", "ntc-ai/SDXL-LoRA-slider.ultra-realistic-illustration", "ntc-ai/SDXL-LoRA-slider.eye-catching", "KappaNeuro/john-constable-style", "dvyio/flux-lora-film-noir", "dvyio/flux-lora-pro-headshot"], label="Custom LoRA",)
190
  with gr.Row():
191
  with gr.Accordion("⚙️ Advanced Settings", open=False, elem_id="settings-container"):
192
+ negative_prompt = gr.Textbox(label="Negative Prompt", lines=5, placeholder="What should not be in the image", value=" (visible hand:1.3), (ugly:1.3), (duplicate:1.2), (morbid:1.1), (mutilated:1.1), out of frame, bad face, extra fingers, mutated hands, (poorly drawn hands:1.1), (poorly drawn face:1.3), (mutation:1.3), (deformed:1.3), blurry, (bad anatomy:1.1), (bad proportions:1.2), (extra limbs:1.1), cloned face, (disfigured:1.2), gross proportions, malformed limbs, (missing arms:1.1), (missing legs:1.1), (extra arms:1.2), (extra legs:1.2), fused fingers, too many fingers, (long neck:1.2), sketched by bad-artist, (bad-image-v2-39000:1.3) ")
193
  with gr.Row():
194
  width = gr.Slider(label="Image Width", value=896, minimum=64, maximum=1216, step=32)
195
  height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
 
208
  clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt)
209
 
210
  with gr.Row():
211
+ image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
212
  with gr.Row():
213
  clear_btn = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
214
  clear_btn.click(clear, inputs=[], outputs=[image_output])
 
228
  image_button = gr.Button("Run", variant='primary')
229
  image_button.click(flip_image, inputs=image_input, outputs=image_output, concurrency_limit=2)
230
 
231
+ app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
232
  if __name__ == "__main__":
233
+ app.launch(show_api=False, share=True)
234
+