DigiP-AI commited on
Commit
9e0a74d
·
verified ·
1 Parent(s): 4341179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -41
app.py CHANGED
@@ -112,47 +112,48 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
112
  with gr.Column(elem_id="app-container"):
113
  with gr.Row():
114
  with gr.Column(elem_id="prompt-container"):
115
- with gr.Row():
116
- text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
117
- with gr.Row():
118
- with gr.Accordion("🎨 Lora trigger words", open=False):
119
- gr.Markdown("""
120
- - **sdxl-realistic**: szn style
121
- - **Flux-Realism-FineDetailed**: Fine Detailed
122
- - **Fashion-Hut-Modeling-LoRA**: Modeling
123
- - **SD3.5-Large-Turbo-HyperRealistic-LoRA**: hyper realistic
124
- - **Flux-Fine-Detail-LoRA**: Super Detail
125
- - **SD3.5-Turbo-Realism-2.0-LoRA**: Turbo Realism
126
- - **Canopus-LoRA-Flux-UltraRealism-2.0**: Ultra realistic
127
- - **extremely-detailed**: extremely detailed
128
- - **SD3.5-Large-Photorealistic-LoRA**: photorealistic
129
- - **Flux.1-Dev-LoRA-HDR-Realism**: HDR
130
- - **prithivMLmods/Ton618-Epic-Realism-Flux-LoRA**: Epic Realism
131
- - **john-singer-sargent-style**: John Singer Sargent Style
132
- - **alphonse-mucha-style**: Alphonse Mucha Style
133
- - **ultra-realistic-illustration**: ultra realistic illustration
134
- - **eye-catching**: eye-catching
135
- - **john-constable-style**: John Constable Style
136
- - **film-noir**: in the style of FLMNR
137
- - **flux-lora-pro-headshot**: PROHEADSHOT
138
- """)
139
-
140
- with gr.Row():
141
- custom_lora = gr.Dropdown([" ", "jwu114/lora-sdxl-realistic", "prithivMLmods/Flux-Realism-FineDetailed", "prithivMLmods/Fashion-Hut-Modeling-LoRA", "prithivMLmods/SD3.5-Large-Turbo-HyperRealistic-LoRA", "prithivMLmods/Flux-Fine-Detail-LoRA", "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",)
142
- with gr.Row():
143
- with gr.Accordion("⚙️ Advanced Settings", open=False, elem_id="settings-container"):
144
- 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) ")
145
- with gr.Row():
146
- width = gr.Slider(label="Image Width", value=896, minimum=64, maximum=1216, step=32)
147
- height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
148
- strength = gr.Slider(label="Prompt Strength", value=100, minimum=0, maximum=100, step=1)
149
- steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
150
- cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
151
- seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
152
- method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
153
- with gr.Row():
154
- with gr.Accordion("🫘Seed", open=False):
155
- seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
 
156
 
157
  with gr.Row():
158
  text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
 
112
  with gr.Column(elem_id="app-container"):
113
  with gr.Row():
114
  with gr.Column(elem_id="prompt-container"):
115
+ with gr.group:
116
+ with gr.Row():
117
+ text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
118
+ with gr.Row():
119
+ with gr.Accordion("🎨 Lora trigger words", open=False):
120
+ gr.Markdown("""
121
+ - **sdxl-realistic**: szn style
122
+ - **Flux-Realism-FineDetailed**: Fine Detailed
123
+ - **Fashion-Hut-Modeling-LoRA**: Modeling
124
+ - **SD3.5-Large-Turbo-HyperRealistic-LoRA**: hyper realistic
125
+ - **Flux-Fine-Detail-LoRA**: Super Detail
126
+ - **SD3.5-Turbo-Realism-2.0-LoRA**: Turbo Realism
127
+ - **Canopus-LoRA-Flux-UltraRealism-2.0**: Ultra realistic
128
+ - **extremely-detailed**: extremely detailed
129
+ - **SD3.5-Large-Photorealistic-LoRA**: photorealistic
130
+ - **Flux.1-Dev-LoRA-HDR-Realism**: HDR
131
+ - **prithivMLmods/Ton618-Epic-Realism-Flux-LoRA**: Epic Realism
132
+ - **john-singer-sargent-style**: John Singer Sargent Style
133
+ - **alphonse-mucha-style**: Alphonse Mucha Style
134
+ - **ultra-realistic-illustration**: ultra realistic illustration
135
+ - **eye-catching**: eye-catching
136
+ - **john-constable-style**: John Constable Style
137
+ - **film-noir**: in the style of FLMNR
138
+ - **flux-lora-pro-headshot**: PROHEADSHOT
139
+ """)
140
+
141
+ with gr.Row():
142
+ custom_lora = gr.Dropdown([" ", "jwu114/lora-sdxl-realistic", "prithivMLmods/Flux-Realism-FineDetailed", "prithivMLmods/Fashion-Hut-Modeling-LoRA", "prithivMLmods/SD3.5-Large-Turbo-HyperRealistic-LoRA", "prithivMLmods/Flux-Fine-Detail-LoRA", "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",)
143
+ with gr.Row():
144
+ with gr.Accordion("⚙️ Advanced Settings", open=False, elem_id="settings-container"):
145
+ 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) ")
146
+ with gr.Row():
147
+ width = gr.Slider(label="Image Width", value=896, minimum=64, maximum=1216, step=32)
148
+ height = gr.Slider(label="Image Height", value=1152, minimum=64, maximum=1216, step=32)
149
+ strength = gr.Slider(label="Prompt Strength", value=100, minimum=0, maximum=100, step=1)
150
+ steps = gr.Slider(label="Sampling steps", value=50, minimum=1, maximum=100, step=1)
151
+ cfg = gr.Slider(label="CFG Scale", value=3.5, minimum=1, maximum=20, step=0.5)
152
+ seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
153
+ method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "PLMS", "UniPC", "UniPC BH2"])
154
+ with gr.Row():
155
+ with gr.Accordion("🫘Seed", open=False):
156
+ seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
157
 
158
  with gr.Row():
159
  text_button = gr.Button("Run", variant='primary', elem_id="gen-button")