Mary12 commited on
Commit
a332ad5
·
1 Parent(s): 6ce83a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -22,6 +22,8 @@ def extract_text_from_pdf(file_path):
22
  for page in reader.pages:
23
  text += page.extract_text() + "\n"
24
 
 
 
25
 
26
  def model(model_name):
27
  tokenizer = AutoTokenizer.from_pretrained(model_name)
 
22
  for page in reader.pages:
23
  text += page.extract_text() + "\n"
24
 
25
+ return text
26
+
27
 
28
  def model(model_name):
29
  tokenizer = AutoTokenizer.from_pretrained(model_name)