Spaces:
Sleeping
Sleeping
kahennefer
commited on
Commit
•
4ffeb00
1
Parent(s):
796d80b
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ def summarize_abstract_from_pdf(pdf_file_path):
|
|
62 |
return summarized_abstract2[0]['summary_text']
|
63 |
|
64 |
def generate_audio_func(pdf_file):
|
65 |
-
|
|
|
66 |
# Generate audio from text
|
67 |
#call the summarize abstract function
|
68 |
text_prompt = summarize_abstract_from_pdf(pdf_file_path)
|
|
|
62 |
return summarized_abstract2[0]['summary_text']
|
63 |
|
64 |
def generate_audio_func(pdf_file):
|
65 |
+
|
66 |
+
pdf_file_path = pdf_file.name
|
67 |
# Generate audio from text
|
68 |
#call the summarize abstract function
|
69 |
text_prompt = summarize_abstract_from_pdf(pdf_file_path)
|