Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import tempfile
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
# Load question generation model
|
| 10 |
-
qg_pipeline = pipeline("text2text-generation", model="
|
| 11 |
|
| 12 |
# OCR function
|
| 13 |
def extract_text_from_scanned_pdf(file_path):
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
# Load question generation model
|
| 10 |
+
qg_pipeline = pipeline("text2text-generation", model="valhalla/t5-small-qg-prepend", tokenizer="t5-small")
|
| 11 |
|
| 12 |
# OCR function
|
| 13 |
def extract_text_from_scanned_pdf(file_path):
|