LeeveWasTaken
commited on
Commit
•
e1aface
1
Parent(s):
3ce1851
Update app.py
Browse files
app.py
CHANGED
@@ -37,13 +37,14 @@ def gen_fn(model_str, prompt, negative_prompt=None, image_style="Default"):
|
|
37 |
with gr.Blocks() as demo:
|
38 |
with gr.Tab('The Dream'):
|
39 |
txt_input = gr.Textbox(label='Your prompt:', lines=4)
|
40 |
-
gen_button = gr.Button('Generate up to 6 images in up to 1 minutes total')
|
41 |
-
stop_button = gr.Button('Stop', variant='secondary', interactive=False)
|
42 |
|
43 |
with gr.Accordion("Advanced Settings", open=False) as advanced_settings:
|
44 |
neg_prompt = gr.Textbox(label='Negative prompt (Optional):', placeholder='Enter undesirable attributes here', lines=2)
|
45 |
image_style = gr.Dropdown(label='Select Style', choices=["Default", "Cinematic", "Digital Art", "Portrait"], value="Default")
|
46 |
|
|
|
|
|
|
|
47 |
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
48 |
gr.HTML(
|
49 |
"""
|
|
|
37 |
with gr.Blocks() as demo:
|
38 |
with gr.Tab('The Dream'):
|
39 |
txt_input = gr.Textbox(label='Your prompt:', lines=4)
|
|
|
|
|
40 |
|
41 |
with gr.Accordion("Advanced Settings", open=False) as advanced_settings:
|
42 |
neg_prompt = gr.Textbox(label='Negative prompt (Optional):', placeholder='Enter undesirable attributes here', lines=2)
|
43 |
image_style = gr.Dropdown(label='Select Style', choices=["Default", "Cinematic", "Digital Art", "Portrait"], value="Default")
|
44 |
|
45 |
+
gen_button = gr.Button('Generate up to 6 images in up to 1 minutes total')
|
46 |
+
stop_button = gr.Button('Stop', variant='secondary', interactive=False)
|
47 |
+
|
48 |
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
49 |
gr.HTML(
|
50 |
"""
|