Spaces:
Runtime error
Runtime error
Add application file
Browse files- .gitattributes +0 -36
- Article_7.pdf +0 -3
- Article_9.pdf +0 -3
- README.md +0 -13
- app.py +6 -1
- requirements.txt +0 -14
.gitattributes
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Article_7.pdf
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:a44d7e22d2005752271c9cc1929c6462d4c8270916b063977992a883e3a54362
|
3 |
-
size 228716
|
|
|
|
|
|
|
|
Article_9.pdf
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0359f98d736631dcc03df976e9365cfd56b99eefc46cd7c62e8fb57a915095da
|
3 |
-
size 714675
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: SpeechAbstractor
|
3 |
-
emoji: 🌖
|
4 |
-
colorFrom: indigo
|
5 |
-
colorTo: pink
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 4.7.1
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: mit
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -20,6 +20,10 @@ description = """**SpeechAbstractor**\n
|
|
20 |
This app allows you to upload an article with Abstract in .pdf and summarize the Abstract itself and speak it out loud.
|
21 |
Some examples are given here below. Please, help yourself!"""
|
22 |
|
|
|
|
|
|
|
|
|
23 |
#reporting the created functions for the part 1
|
24 |
def text_extraction(element):
|
25 |
line_text = element.get_text()
|
@@ -147,7 +151,8 @@ iface = gr.Interface(
|
|
147 |
fn=main_function,
|
148 |
inputs=gr.File(type="filepath"),
|
149 |
outputs=[gr.Textbox(label="Summary Text"), gr.Audio(label="Summary Audio", type="filepath")],
|
150 |
-
description=description
|
|
|
151 |
)
|
152 |
|
153 |
#launching the app
|
|
|
20 |
This app allows you to upload an article with Abstract in .pdf and summarize the Abstract itself and speak it out loud.
|
21 |
Some examples are given here below. Please, help yourself!"""
|
22 |
|
23 |
+
examples = [
|
24 |
+
["Article_7.pdf"],["Article_9.pdf"]
|
25 |
+
]
|
26 |
+
|
27 |
#reporting the created functions for the part 1
|
28 |
def text_extraction(element):
|
29 |
line_text = element.get_text()
|
|
|
151 |
fn=main_function,
|
152 |
inputs=gr.File(type="filepath"),
|
153 |
outputs=[gr.Textbox(label="Summary Text"), gr.Audio(label="Summary Audio", type="filepath")],
|
154 |
+
description=description,
|
155 |
+
examples=examples
|
156 |
)
|
157 |
|
158 |
#launching the app
|
requirements.txt
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
gradio
|
2 |
-
datasets
|
3 |
-
sentencepiece
|
4 |
-
transformers
|
5 |
-
pdfplumber
|
6 |
-
gtts
|
7 |
-
PyPDF2
|
8 |
-
pdfminer.six
|
9 |
-
pdf2image
|
10 |
-
Pillow
|
11 |
-
pytesseract
|
12 |
-
torch
|
13 |
-
soundfile
|
14 |
-
IPython
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|