DigiP-AI commited on
Commit
98448f4
·
verified ·
1 Parent(s): caab276

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -179,6 +179,12 @@ def mirror(image_output, scale_by, method, gfpgan, codeformer):
179
  img = Image.open(BytesIO(response2.content))
180
  return img
181
 
 
 
 
 
 
 
182
  # CSS to style the app
183
  css = """
184
  .gradio-container {background-color: MediumAquaMarine}
@@ -199,7 +205,11 @@ with gr.Blocks(css=css, theme=theme) as app:
199
  with gr.Row():
200
  task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🧠 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
201
  'Juggernaut XL', 'DreamShaper XL',
202
- 'SDXL Niji', 'Cinemax SDXL', 'NightVision XL'])
 
 
 
 
203
  with gr.Tab("Extended settings"):
204
  with gr.Row():
205
  negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=True, label='Negative Prompt:', lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
 
179
  img = Image.open(BytesIO(response2.content))
180
  return img
181
 
182
+ examples = [
183
+ "a beautiful woman with blonde hair and blue eyes",
184
+ "a beautiful woman with brown hair and grey eyes",
185
+ "a beautiful woman with black hair and brown eyes",
186
+ ]
187
+
188
  # CSS to style the app
189
  css = """
190
  .gradio-container {background-color: MediumAquaMarine}
 
205
  with gr.Row():
206
  task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🧠 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
207
  'Juggernaut XL', 'DreamShaper XL',
208
+ gr.Examples(
209
+ examples = examples,
210
+ inputs = [text_prompt],
211
+ ) 'SDXL Niji', 'Cinemax SDXL', 'NightVision XL'])
212
+
213
  with gr.Tab("Extended settings"):
214
  with gr.Row():
215
  negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=True, label='Negative Prompt:', lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")