arijitdas123student commited on
Commit
80791c5
1 Parent(s): a9d3428

Application file and dependencies

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