arithescientist commited on
Commit
f5ab699
·
1 Parent(s): 55c0262

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -55,10 +55,10 @@ def pdf_to_text(file_obj):
55
  pdf.output("legal.pdf")
56
 
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
 
@@ -67,7 +67,7 @@ def pdf_to_text(file_obj):
67
  # return path
68
  #pageObject.extractText()
69
  iface = gr.Interface(fn = pdf_to_text,
70
- inputs = "file", outputs=["audio","text", "file"] )
71
 
72
  if __name__ == "__main__":
73
  iface.launch(share=True)
 
55
  pdf.output("legal.pdf")
56
 
57
 
58
+ #myobj = gTTS(text=output_text, lang='en', slow=False)
59
+ #myobj.save("legal.wav")
60
 
61
+ return output_text, "legal.pdf"
62
 
63
 
64
 
 
67
  # return path
68
  #pageObject.extractText()
69
  iface = gr.Interface(fn = pdf_to_text,
70
+ inputs = "file", outputs=["text", "file"] )
71
 
72
  if __name__ == "__main__":
73
  iface.launch(share=True)