Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
β’
2ffcfd9
1
Parent(s):
453ac93
update
Browse files
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.
|
|
|
147 |
with gr.Column():
|
148 |
-
gr.
|
149 |
-
|
150 |
-
|
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])
|