Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
5f75abd
1
Parent(s):
2ffcfd9
update
Browse files
pages/summarization_playground.py
CHANGED
@@ -149,7 +149,7 @@ def create_summarization_interface():
|
|
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
|
153 |
|
154 |
example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
|
155 |
submit_button.click(process_input, inputs=[input_text,model_dropdown,Template_text,temperature,max_new_tokens,do_sample], outputs=[output])
|
|
|
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)
|
153 |
|
154 |
example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
|
155 |
submit_button.click(process_input, inputs=[input_text,model_dropdown,Template_text,temperature,max_new_tokens,do_sample], outputs=[output])
|