Update app.py
Browse filesedit Image Description
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="
|
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
|
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 |
|