Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|