Spaces:
Runtime error
Runtime error
Rehman1603
commited on
Commit
•
f442eb4
1
Parent(s):
b9a6cec
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from summarize import Summarizer
|
3 |
+
|
4 |
+
interface = gr.Interface(fn = Summarizer,
|
5 |
+
inputs = [gr.inputs.Textbox(lines=2,
|
6 |
+
placeholder="Enter your link...",
|
7 |
+
label='YouTube Video Link'),
|
8 |
+
gr.inputs.Radio(["mT5", "BART"], type="value", label='Model')],
|
9 |
+
outputs = [gr.outputs.Textbox(
|
10 |
+
label="Summary")],
|
11 |
+
|
12 |
+
title = "Youtube Video Summarizer",
|
13 |
+
examples = [
|
14 |
+
['https://www.youtube.com/watch?v=WSbgixdC9g8', 'BART']
|
15 |
+
],
|
16 |
+
enable_queue=True)
|
17 |
+
|
18 |
+
interface.launch(debug=True)
|