ehristoforu commited on
Commit
e1d53b4
1 Parent(s): e941316

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -110,6 +110,21 @@ css = """
110
  #component-16{border-top-width: 1px!important;margin-top: 1em}
111
  .image_duplication{position: absolute; width: 100px; left: 50px}
112
  .tabitem{border: 0 !important}.style(mobile_collapse=False, equal_height=True).style(mobile_collapse=False, equal_height=True).style(mobile_collapse=False, equal_height=True).style(mobile_collapse=False, equal_height=True
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  """
114
 
115
  with gr.Blocks(css=css) as demo:
@@ -164,14 +179,14 @@ with gr.Blocks(css=css) as demo:
164
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
165
  with gr.Column(scale=6, min_width=600):
166
  prompt = gr.Textbox(label="Prompt", placeholder="a cute cat, 8k", show_label=True, lines=1, elem_id="prompt-text-input")
167
- text_button = gr.Button("Generate", variant='primary', elem_id="generate")
168
  with gr.Row():
169
  with gr.Column(scale=1):
170
- image_output = gr.Image()
171
  with gr.Row():
172
  with gr.Accordion("Additionals inputs", open=False):
173
  with gr.Column(scale=1):
174
- 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)
175
  with gr.Column(scale=1):
176
  steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
177
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
 
110
  #component-16{border-top-width: 1px!important;margin-top: 1em}
111
  .image_duplication{position: absolute; width: 100px; left: 50px}
112
  .tabitem{border: 0 !important}.style(mobile_collapse=False, equal_height=True).style(mobile_collapse=False, equal_height=True).style(mobile_collapse=False, equal_height=True).style(mobile_collapse=False, equal_height=True
113
+ #gen-button{
114
+ border-top-left-radius:0;
115
+ border-bottom-left-radius:0;
116
+ }
117
+ #gallery {
118
+ min-height: 22rem;
119
+ margin-bottom: 15px;
120
+ margin-left: auto;
121
+ margin-right: auto;
122
+ border-bottom-right-radius: .5rem !important;
123
+ border-bottom-left-radius: .5rem !important;
124
+ }
125
+ #gallery>div>.h-full {
126
+ min-height: 20rem;
127
+ }
128
  """
129
 
130
  with gr.Blocks(css=css) as demo:
 
179
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
180
  with gr.Column(scale=6, min_width=600):
181
  prompt = gr.Textbox(label="Prompt", placeholder="a cute cat, 8k", show_label=True, lines=1, elem_id="prompt-text-input")
182
+ text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
183
  with gr.Row():
184
  with gr.Column(scale=1):
185
+ image_output = gr.Image(elem_id="gallery")
186
  with gr.Row():
187
  with gr.Accordion("Additionals inputs", open=False):
188
  with gr.Column(scale=1):
189
+ 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, elem_id="negative-prompt-text-input")
190
  with gr.Column(scale=1):
191
  steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
192
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)