Spaces:
Sleeping
Sleeping
Commit
·
7a3d3ad
1
Parent(s):
a0ecce1
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from PyPDF2 import PdfReader
|
3 |
from transformers import pipeline
|
@@ -5,6 +8,7 @@ from gtts import gTTS
|
|
5 |
import tempfile
|
6 |
import os
|
7 |
|
|
|
8 |
def extract_abstract_from_pdf(file):
|
9 |
reader = PdfReader(file.name)
|
10 |
first_page = reader.pages[0]
|
|
|
1 |
+
# https://huggingface.co/spaces/Antoniskaraolis/AI_Audio_Processing
|
2 |
+
|
3 |
+
# Here are the imports
|
4 |
import gradio as gr
|
5 |
from PyPDF2 import PdfReader
|
6 |
from transformers import pipeline
|
|
|
8 |
import tempfile
|
9 |
import os
|
10 |
|
11 |
+
# Here is the code
|
12 |
def extract_abstract_from_pdf(file):
|
13 |
reader = PdfReader(file.name)
|
14 |
first_page = reader.pages[0]
|