Spaces:
Sleeping
Sleeping
namberino
commited on
Commit
·
d82acc6
1
Parent(s):
1950969
Update generate from pdf path
Browse files
app.py
CHANGED
|
@@ -254,8 +254,7 @@ async def generate_endpoint(
|
|
| 254 |
for difficulty, n_questions in difficulty_counts.items():
|
| 255 |
try:
|
| 256 |
mcqs = rag.generate_from_pdf(
|
| 257 |
-
tmp_path,
|
| 258 |
-
collection=collection_name,
|
| 259 |
n_questions=n_questions,
|
| 260 |
mode=mode,
|
| 261 |
questions_per_page=questions_per_page,
|
|
|
|
| 254 |
for difficulty, n_questions in difficulty_counts.items():
|
| 255 |
try:
|
| 256 |
mcqs = rag.generate_from_pdf(
|
| 257 |
+
pdf_path=tmp_path,
|
|
|
|
| 258 |
n_questions=n_questions,
|
| 259 |
mode=mode,
|
| 260 |
questions_per_page=questions_per_page,
|