Spaces:
Runtime error
Runtime error
"~"
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def generate_answer(context):
|
|
| 20 |
result = summarization(context)
|
| 21 |
return result[0]['summary_text']
|
| 22 |
|
| 23 |
-
description="Enter a
|
| 24 |
|
| 25 |
with gr.Blocks(theme=gr.themes.Soft(), title="Text Summarization") as demo:
|
| 26 |
gr.Markdown(description)
|
|
@@ -30,7 +30,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Text Summarization") as demo:
|
|
| 30 |
random_button = gr.Button("Random")
|
| 31 |
generate_button = gr.Button("Generate")
|
| 32 |
C_input = gr.Textbox(lines=6, label="Context paragraph")
|
| 33 |
-
|
| 34 |
random_button.click(random_sample, inputs=None, outputs=C_input)
|
| 35 |
generate_button.click(generate_answer, inputs=C_input, outputs=S_output)
|
| 36 |
|
|
|
|
| 20 |
result = summarization(context)
|
| 21 |
return result[0]['summary_text']
|
| 22 |
|
| 23 |
+
description="Enter a text paragraph to generate a title."
|
| 24 |
|
| 25 |
with gr.Blocks(theme=gr.themes.Soft(), title="Text Summarization") as demo:
|
| 26 |
gr.Markdown(description)
|
|
|
|
| 30 |
random_button = gr.Button("Random")
|
| 31 |
generate_button = gr.Button("Generate")
|
| 32 |
C_input = gr.Textbox(lines=6, label="Context paragraph")
|
| 33 |
+
|
| 34 |
random_button.click(random_sample, inputs=None, outputs=C_input)
|
| 35 |
generate_button.click(generate_answer, inputs=C_input, outputs=S_output)
|
| 36 |
|