Spaces:
Runtime error
Runtime error
kz209
commited on
Commit
·
410ecb9
1
Parent(s):
18b6d60
update new line
Browse files
pages/summarization_playground.py
CHANGED
|
@@ -77,7 +77,7 @@ def create_summarization_interface():
|
|
| 77 |
datapoint = random.choice(dataset)
|
| 78 |
input_text = gr.Textbox(label="Input Dialogue", lines=10, placeholder="Enter text here...", value=datapoint['section_text'] + '\n\nDialogue:\n' + datapoint['dialogue'])
|
| 79 |
submit_button = gr.Button("✨ Submit ✨")
|
| 80 |
-
output = gr.Markdown()
|
| 81 |
|
| 82 |
example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
|
| 83 |
submit_button.click(process_input, inputs=[input_text, model_dropdown, Template_text], outputs=[output])
|
|
|
|
| 77 |
datapoint = random.choice(dataset)
|
| 78 |
input_text = gr.Textbox(label="Input Dialogue", lines=10, placeholder="Enter text here...", value=datapoint['section_text'] + '\n\nDialogue:\n' + datapoint['dialogue'])
|
| 79 |
submit_button = gr.Button("✨ Submit ✨")
|
| 80 |
+
output = gr.Markdown(line_breaks=True)
|
| 81 |
|
| 82 |
example_dropdown.change(update_input, inputs=[example_dropdown], outputs=[input_text])
|
| 83 |
submit_button.click(process_input, inputs=[input_text, model_dropdown, Template_text], outputs=[output])
|