dongsiqie commited on
Commit
4053793
1 Parent(s): d182d11

Update app.py

Browse files

edit Image Description

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,10 +31,10 @@ with gr.Blocks() as demo:
31
  api_key_input = gr.Textbox(label="API Key", type="password")
32
  request_url_input = gr.Textbox(label="Request URL", value="https://api.openai.com/v1/images/generations")
33
  quality_input = gr.Dropdown(label="Quality", choices=["standard", "hd"], value="standard")
34
- size_input = gr.Dropdown(label="Size", choices=["1792x1024", "1024x1024", "1024x1792"], value="1792x1024")
35
  style_input = gr.Dropdown(label="Style", choices=["vivid", "natural"], value="vivid")
36
  with gr.Row():
37
- prompt_input = gr.Textbox(label="Image Description", value="A furry, long-haired cat with distinctive orange and white stripes.")
38
  submit_btn = gr.Button("Generate Image", variant='primary')
39
  image_output = gr.Image(label="Generated Image")
40
 
 
31
  api_key_input = gr.Textbox(label="API Key", type="password")
32
  request_url_input = gr.Textbox(label="Request URL", value="https://api.openai.com/v1/images/generations")
33
  quality_input = gr.Dropdown(label="Quality", choices=["standard", "hd"], value="standard")
34
+ size_input = gr.Dropdown(label="Size", choices=["1792x1024", "1024x1024", "1024x1792"], value="1024x1024")
35
  style_input = gr.Dropdown(label="Style", choices=["vivid", "natural"], value="vivid")
36
  with gr.Row():
37
+ prompt_input = gr.Textbox(label="Image Description", value="A cute cat.")
38
  submit_btn = gr.Button("Generate Image", variant='primary')
39
  image_output = gr.Image(label="Generated Image")
40