Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,5 +61,12 @@ def summarize(article_en_raw):
|
|
61 |
input_text = gr.inputs.Textbox(lines=20, label="Enter text document to be summarized")
|
62 |
output_text = gr.outputs.Textbox(label="Summarized Text")
|
63 |
|
64 |
-
gr.Interface(fn=summarize, inputs=input_text, outputs=output_text, title="Text Summarization App",
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
input_text = gr.inputs.Textbox(lines=20, label="Enter text document to be summarized")
|
62 |
output_text = gr.outputs.Textbox(label="Summarized Text")
|
63 |
|
64 |
+
#gr.Interface(fn=summarize, inputs=input_text, outputs=output_text, title="Text Summarization App", description="Enter a text document and get its summarized version.").launch()
|
65 |
+
|
66 |
+
|
67 |
+
gradio_interface = gr.Interface(fn=summarize, inputs=input_text, outputs=output_text,
|
68 |
+
title="Text Summarization App",
|
69 |
+
description="Enter a text document and get its summarized version.")
|
70 |
+
|
71 |
+
if __name__ == "__main__":
|
72 |
+
gradio_interface.launch()
|