kz209 commited on
Commit
2ffcfd9
β€’
1 Parent(s): 453ac93
Files changed (1) hide show
  1. pages/summarization_playground.py +5 -6
pages/summarization_playground.py CHANGED
@@ -143,13 +143,12 @@ def create_summarization_interface():
143
  submit_button = gr.Button("✨ Submit ✨")
144
 
145
  with gr.Row():
146
- with gr.Row(scale=1):
 
147
  with gr.Column():
148
- gr.Markdown("<div style='border: 4px solid white; padding: 2px; border-radius: 5px;width:130px;padding-bottom: 10px;'><b><h3>Parameters πŸ“ˆ</h3></center></b></div>")
149
- with gr.Column():
150
- temperature = gr.Textbox(label="Temperature",elem_classes="parameter-text", value=0.0)
151
- max_new_tokens = gr.Textbox(label="Max New Tokens",elem_classes="parameter-text", value=500)
152
- do_sample = gr.Dropdown([True,False],label="Do Sample",elem_classes="parameter-text", value=True)
153
  output = gr.Markdown(line_breaks=True, scale=2)
154
 
155
  example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
 
143
  submit_button = gr.Button("✨ Submit ✨")
144
 
145
  with gr.Row():
146
+ with gr.Column(scale=1):
147
+ gr.Markdown("<div style='border: 4px solid white; padding: 2px; border-radius: 5px;width:130px;padding-bottom: 10px;'><b><h3>Parameters πŸ“ˆ</h3></center></b></div>")
148
  with gr.Column():
149
+ temperature = gr.Textbox(label="Temperature",elem_classes="parameter-text", value=0.0)
150
+ max_new_tokens = gr.Textbox(label="Max New Tokens",elem_classes="parameter-text", value=500)
151
+ do_sample = gr.Dropdown([True,False],label="Do Sample",elem_classes="parameter-text", value=True)
 
 
152
  output = gr.Markdown(line_breaks=True, scale=2)
153
 
154
  example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])