Create app.py
Browse files
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()
|