aditi2222 commited on
Commit
26e8da1
·
1 Parent(s): acfb5b9

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # For this demo we're using Gradio, Hugging Face Spaces, Pytorch and Hugging Face Transformers
2
+ import gradio as gr f
3
+ from gradio.mix import Parallel, Series
4
+ # Summarizes Meeting Transcripts using Google Research's PEGASUS library
5
+ summarizer = gr.Interface.load("huggingface/google/pegasus-cnn_dailymail")
6
+ output_text = gr.outputs.Textbox()
7
+ # Displays the end results to a webpage (i.e. here HuggingFace Spaces)
8
+ Series(summarizer, inputs = gr.inputs.Textbox(lines=10, label="Meeting Transcript")).launch()