svjack commited on
Commit
6d7f7ae
1 Parent(s): ed3c757

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -207,7 +207,6 @@ with gr.Blocks(css=css) as demo:
207
  f"""<h1><center>🌻{favicon} AI Diffusion</center></h1>
208
  """
209
  )
210
-
211
  with gr.Row(elem_id="prompt-container"):
212
  current_model = gr.Dropdown(label="Current Model", choices=list_models, value=list_models[1])
213
 
@@ -216,11 +215,15 @@ with gr.Blocks(css=css) as demo:
216
  text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
217
 
218
  with gr.Row("prompt-container"):
219
- select_prompt = gr.Dropdown(label="Prompt selected", choices=list_prompts,
220
- value = "1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt",
221
- info = "default prompt: {}".format(DEFAULT_PROMPT)
222
- )
223
- select_button = gr.Button("Select Prompt Generate", variant='primary', elem_id="gen-button")
 
 
 
 
224
 
225
  with gr.Row():
226
  image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
 
207
  f"""<h1><center>🌻{favicon} AI Diffusion</center></h1>
208
  """
209
  )
 
210
  with gr.Row(elem_id="prompt-container"):
211
  current_model = gr.Dropdown(label="Current Model", choices=list_models, value=list_models[1])
212
 
 
215
  text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
216
 
217
  with gr.Row("prompt-container"):
218
+ with gr.Row():
219
+ select_prompt = gr.Dropdown(label="Prompt selected", choices=list_prompts,
220
+ value = "1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt",
221
+ info = "default prompt: {}".format(DEFAULT_PROMPT)
222
+ )
223
+ select_button = gr.Button("Select Prompt Generate", variant='primary', elem_id="gen-button")
224
+ with gr.Row():
225
+ btn_refresh = gr.Button(value="Click Refresh to get newly Prompt candidates")
226
+ btn_refresh.click(None, js="window.location.reload()")
227
 
228
  with gr.Row():
229
  image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")