Spaces:
Running
Running
arithescientist
commited on
Commit
·
e91cc11
1
Parent(s):
83fbd87
Update app.py
Browse files
app.py
CHANGED
@@ -54,10 +54,12 @@ def pdf_to_text(PDF, Sentences):
|
|
54 |
pdf.multi_cell(190, 10, txt = f, align = 'C')
|
55 |
# save the pdf with name .pdf
|
56 |
pdf.output("legal.pdf")
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
59 |
|
60 |
-
return "legal.wav", output_text, "legal.pdf"
|
61 |
|
62 |
# path = folder_name
|
63 |
|
|
|
54 |
pdf.multi_cell(190, 10, txt = f, align = 'C')
|
55 |
# save the pdf with name .pdf
|
56 |
pdf.output("legal.pdf")
|
57 |
+
|
58 |
+
myobj = gTTS(text=output_text, lang='en', slow=False)
|
59 |
+
myobj.save("legal.wav")
|
60 |
+
|
61 |
+
return "legal.wav", output_text, "legal.pdf"
|
62 |
|
|
|
63 |
|
64 |
# path = folder_name
|
65 |
|