kz209 commited on
Commit
295cf33
β€’
1 Parent(s): 018e189
Files changed (1) hide show
  1. pages/summarization_playground.py +2 -2
pages/summarization_playground.py CHANGED
@@ -146,8 +146,8 @@ def create_summarization_interface():
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.Number(label="Temperature",elem_classes="parameter-text", value=0.0, precision=0)
150
- max_new_tokens = gr.Number(label="Max New Tokens",elem_classes="parameter-text", value=500, precision=0)
151
  do_sample = gr.Dropdown([True,False],label="Do Sample",elem_classes="parameter-text", value=True)
152
  with gr.Column(scale=3):
153
  output = gr.Markdown(line_breaks=True)
 
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.Number(label="Temperature",elem_classes="parameter-text", value=0.0, minimum=0.000001, maximum=1.0)
150
+ max_new_tokens = gr.Number(label="Max New Tokens",elem_classes="parameter-text", value=500, precision=0, minimum=0, maximum=500)
151
  do_sample = gr.Dropdown([True,False],label="Do Sample",elem_classes="parameter-text", value=True)
152
  with gr.Column(scale=3):
153
  output = gr.Markdown(line_breaks=True)