Programmation-informatique commited on
Commit
14f232b
·
1 Parent(s): 0d83074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -187,13 +187,13 @@ with gr.Blocks(css=css) as demo:
187
  with gr.Box():
188
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
189
  with gr.Column():
190
- text_prompt = gr.Textbox(show_label=False, placeholder="Enter your prompt", max_lines=1, elem_id="prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
191
- negative_prompt = gr.Textbox(show_label=False, placeholder="Enter a negative prompt", max_lines=1, elem_id="negative-prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
192
  text_button = gr.Button("Generate").style(margin=False, rounded=(False, True, True, False), full_width=False)
193
 
194
  gallery_output = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
195
  with gr.Accordion("Advanced settings", open=False):
196
- image_style = gr.Radio(label="Style", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="None style")
197
 
198
  text_button.click(query, inputs=[text_prompt, negative_prompt, image_style], outputs=gallery_output)
199
 
 
187
  with gr.Box():
188
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
189
  with gr.Column():
190
+ text_prompt = gr.Textbox(show_label=False, placeholder="Votre inspiration", max_lines=1, elem_id="prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
191
+ negative_prompt = gr.Textbox(show_label=False, placeholder="Je ne veux pas...", max_lines=1, elem_id="negative-prompt-text-input").style(border=(True, False, True, True), rounded=(True, False, False, True), container=False)
192
  text_button = gr.Button("Generate").style(margin=False, rounded=(False, True, True, False), full_width=False)
193
 
194
  gallery_output = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
195
  with gr.Accordion("Advanced settings", open=False):
196
+ image_style = gr.Radio(label="Style", choices=["Rien", "Cinéma", "Artistique", "Portrait"], value="None style")
197
 
198
  text_button.click(query, inputs=[text_prompt, negative_prompt, image_style], outputs=gallery_output)
199