tstech1 commited on
Commit
ea7729b
·
verified ·
1 Parent(s): 68fb3ad

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -20,7 +20,7 @@ def extract_pdf_text(file) -> str:
20
  return text
21
 
22
 
23
- @app.post("/generate-questions")
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