Tyler Lastovich commited on
Commit
a5af3f9
·
1 Parent(s): 280001e

Resize output image

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -181,7 +181,11 @@ custom_css="""
181
  .input_text textarea:focus-visible {
182
  outline: none;
183
  }
184
-
 
 
 
 
185
  .panel:nth-child(1) {
186
  margin-left: 50px;
187
  margin-right: 50px;
@@ -191,16 +195,13 @@ custom_css="""
191
  .panel {
192
  background: transparent;
193
  }
194
- .panel:nth-child(2) .gradio_page[theme=default] .gradio_interface .component_set {
195
  background: transparent;
196
  }
197
  .panel:nth-child(2) .gradio_page[theme=default] .gradio_interface .panel_header {
198
  display: none;
199
  }
200
- .gradio_page[theme=default] .component_set {
201
- background: transparent;
202
- opacity: 1 !important;
203
- }"""
204
  creative_slider = gr.inputs.Radio(["Low", "Medium", "High"], default="Low", label='Creativity')
205
  textbox = gr.inputs.Textbox(placeholder='An apartment with two bedrooms and one bathroom', lines="3",
206
  label="DESCRIBE YOUR IDEAL APARTMENT")
 
181
  .input_text textarea:focus-visible {
182
  outline: none;
183
  }
184
+ .gradio_page[theme=default] .gradio_interface .output_image {
185
+ width: 100%;
186
+ height: 40vw;
187
+ max-height: 630px;
188
+ }
189
  .panel:nth-child(1) {
190
  margin-left: 50px;
191
  margin-right: 50px;
 
195
  .panel {
196
  background: transparent;
197
  }
198
+ .gradio_page[theme=default] .gradio_interface .component_set {
199
  background: transparent;
200
  }
201
  .panel:nth-child(2) .gradio_page[theme=default] .gradio_interface .panel_header {
202
  display: none;
203
  }
204
+ """
 
 
 
205
  creative_slider = gr.inputs.Radio(["Low", "Medium", "High"], default="Low", label='Creativity')
206
  textbox = gr.inputs.Textbox(placeholder='An apartment with two bedrooms and one bathroom', lines="3",
207
  label="DESCRIBE YOUR IDEAL APARTMENT")