gianb commited on
Commit
bcf7f6d
·
1 Parent(s): 183fa99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -4,7 +4,6 @@ import PyPDF2
4
 
5
  from transformers import pipeline
6
  from PyPDF2 import PdfReader
7
- import pdfplumber
8
 
9
  import torch
10
 
@@ -33,8 +32,6 @@ def summarize_and_speech(pdf_file):
33
 
34
  return summary, audio_data
35
 
36
- pdf_bytes_io.close()
37
-
38
 
39
  iface = gr.Interface(
40
  fn= summarize_and_speech,
 
4
 
5
  from transformers import pipeline
6
  from PyPDF2 import PdfReader
 
7
 
8
  import torch
9
 
 
32
 
33
  return summary, audio_data
34
 
 
 
35
 
36
  iface = gr.Interface(
37
  fn= summarize_and_speech,