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