Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -20,7 +20,7 @@ def extract_pdf_text(file) -> str:
|
|
| 20 |
return text
|
| 21 |
|
| 22 |
|
| 23 |
-
@app.post("/
|
| 24 |
async def generate_questions(query: str = Form(...), pdf: UploadFile = File(...)):
|
| 25 |
try:
|
| 26 |
# Read uploaded PDF
|
|
|
|
| 20 |
return text
|
| 21 |
|
| 22 |
|
| 23 |
+
@app.post("/Query-pdf")
|
| 24 |
async def generate_questions(query: str = Form(...), pdf: UploadFile = File(...)):
|
| 25 |
try:
|
| 26 |
# Read uploaded PDF
|