ehristoforu commited on
Commit
f6aa7b1
·
1 Parent(s): 3cbf1cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -98,13 +98,9 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
98
 
99
  return job["imageUrl"]
100
 
101
- css = """
102
- #generate {
103
- height: 100%;
104
- }
105
- """
106
 
107
- with gr.Blocks(css=css, model="sd_xl_base_1.0.safetensors [be9edd61]", sampler="DPM++ 2M Karras", batch_size=1, batch_count=1) as demo:
 
108
  with gr.Row():
109
  with gr.Column(scale=1):
110
  gr.HTML(value=""""<h1><center>Fast SDXL-1.0 on <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" target="_blank">stabilityai/stable-diffusion-xl-base-1.0</a>""")
@@ -113,7 +109,7 @@ with gr.Blocks(css=css, model="sd_xl_base_1.0.safetensors [be9edd61]", sampler="
113
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
114
 
115
  with gr.Row():
116
- with gr.Accordion("Additionals inputs"):
117
  with gr.Column(scale=1):
118
  negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry", placeholder="What you don't want to see in the image", show_label=True, lines=1)
119
  with gr.Column(scale=1):
 
98
 
99
  return job["imageUrl"]
100
 
 
 
 
 
 
101
 
102
+
103
+ with gr.Blocks(model="sd_xl_base_1.0.safetensors [be9edd61]", sampler="DPM++ 2M Karras", batch_size=1, batch_count=1) as demo:
104
  with gr.Row():
105
  with gr.Column(scale=1):
106
  gr.HTML(value=""""<h1><center>Fast SDXL-1.0 on <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" target="_blank">stabilityai/stable-diffusion-xl-base-1.0</a>""")
 
109
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
110
 
111
  with gr.Row():
112
+ with gr.Accordion("Additionals inputs", open=False):
113
  with gr.Column(scale=1):
114
  negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry", placeholder="What you don't want to see in the image", show_label=True, lines=1)
115
  with gr.Column(scale=1):