pszemraj commited on
Commit
22fd690
โ€ข
1 Parent(s): 7452863

๐Ÿ’„ compact

Browse files

Signed-off-by: peter szemraj <peterszemraj@gmail.com>

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -219,7 +219,7 @@ if __name__ == "__main__":
219
  gr.Markdown(
220
  "Enter text below in the text area. The text will be summarized [using the selected parameters](https://huggingface.co/blog/how-to-generate). Optionally load an example below or upload a file."
221
  )
222
- with gr.Row():
223
  model_size = gr.Radio(
224
  choices=["base", "large"], label="Model Variant", value="base"
225
  )
@@ -229,7 +229,7 @@ if __name__ == "__main__":
229
  value=2,
230
  )
231
  gr.Markdown("Select an example, or upload a file (`.txt` or `.pdf`)")
232
- with gr.Row():
233
  example_name = gr.Dropdown(
234
  _examples,
235
  label="Examples",
@@ -274,10 +274,10 @@ if __name__ == "__main__":
274
  label="Summary Scores", placeholder="Summary scores will appear here"
275
  )
276
 
277
- gr.Markdown("---")
278
  with gr.Column():
279
  gr.Markdown("### Advanced Settings")
280
- with gr.Row():
281
  length_penalty = gr.inputs.Slider(
282
  minimum=0.5,
283
  maximum=1.0,
@@ -291,7 +291,7 @@ if __name__ == "__main__":
291
  value=1024,
292
  )
293
 
294
- with gr.Row():
295
  repetition_penalty = gr.inputs.Slider(
296
  minimum=1.0,
297
  maximum=5.0,
 
219
  gr.Markdown(
220
  "Enter text below in the text area. The text will be summarized [using the selected parameters](https://huggingface.co/blog/how-to-generate). Optionally load an example below or upload a file."
221
  )
222
+ with gr.Row(variant='compact'):
223
  model_size = gr.Radio(
224
  choices=["base", "large"], label="Model Variant", value="base"
225
  )
 
229
  value=2,
230
  )
231
  gr.Markdown("Select an example, or upload a file (`.txt` or `.pdf`)")
232
+ with gr.Row(variant='compact'):
233
  example_name = gr.Dropdown(
234
  _examples,
235
  label="Examples",
 
274
  label="Summary Scores", placeholder="Summary scores will appear here"
275
  )
276
 
277
+ gr.Markdown("---")
278
  with gr.Column():
279
  gr.Markdown("### Advanced Settings")
280
+ with gr.Row(variant='compact'):
281
  length_penalty = gr.inputs.Slider(
282
  minimum=0.5,
283
  maximum=1.0,
 
291
  value=1024,
292
  )
293
 
294
+ with gr.Row(variant='compact'):
295
  repetition_penalty = gr.inputs.Slider(
296
  minimum=1.0,
297
  maximum=5.0,