Tiju1996 commited on
Commit
b49864d
1 Parent(s): fa71f67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
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
- description="Enter a text document and get its summarized version.").launch()
 
 
 
 
 
 
 
 
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()