mkmenta commited on
Commit
dd43eee
·
verified ·
1 Parent(s): fdc2ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -62,7 +62,7 @@ with gr.Blocks() as demo:
62
  lines=10)
63
  out = gr.Textbox(label="Generated text:", lines=25)
64
  with gr.Column(scale=1):
65
- with gr.Row(scale=1):
66
  model_name = gr.Dropdown(label="Select a model:",
67
  choices=['GPT-2 XL (gpt2-xl)',
68
  'GPT-2 L (gpt2-large)',
@@ -87,10 +87,6 @@ with gr.Blocks() as demo:
87
  max_length = gr.Number(label="Max Length",
88
  info="The maximum length of the sequence to be generated.",
89
  minimum=1, maximum=1024, value=256, precision=0)
90
- # Fill the rest of the column with blank space
91
- # (I didn't find a better way to do this)
92
- with gr.Row(scale=1000):
93
- gr.Markdown()
94
  btn_run.click(fn=generate, inputs=[inp, model_name, temperature, top_p, rep_pty, max_length], outputs=out)
95
 
96
  demo.launch()
 
62
  lines=10)
63
  out = gr.Textbox(label="Generated text:", lines=25)
64
  with gr.Column(scale=1):
65
+ with gr.Row():
66
  model_name = gr.Dropdown(label="Select a model:",
67
  choices=['GPT-2 XL (gpt2-xl)',
68
  'GPT-2 L (gpt2-large)',
 
87
  max_length = gr.Number(label="Max Length",
88
  info="The maximum length of the sequence to be generated.",
89
  minimum=1, maximum=1024, value=256, precision=0)
 
 
 
 
90
  btn_run.click(fn=generate, inputs=[inp, model_name, temperature, top_p, rep_pty, max_length], outputs=out)
91
 
92
  demo.launch()