Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
β’
295cf33
1
Parent(s):
018e189
update
Browse files
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,
|
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)
|