agentsay commited on
Commit
f4f8269
·
verified ·
1 Parent(s): 19cf1d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,8 +141,7 @@ def match_found(policy_uins: List[str], db_uins: List[str]) -> bool:
141
 
142
  @app.post("/verify-policy/")
143
  async def verify_policy(
144
- policy_file: UploadFile = File(...),
145
- db_file: UploadFile = File(...)
146
  ):
147
  """
148
  Verifies if a policy PDF's UIN exists in a database PDF.
@@ -158,6 +157,7 @@ async def verify_policy(
158
  HTTPException: If files are not PDFs or processing fails.
159
  """
160
  logger.info("Received policy verification request")
 
161
 
162
  # Validate file types
163
  if not (policy_file.filename.endswith(".pdf") and db_file.filename.endswith(".pdf")):
 
141
 
142
  @app.post("/verify-policy/")
143
  async def verify_policy(
144
+ policy_file: UploadFile = File(...)
 
145
  ):
146
  """
147
  Verifies if a policy PDF's UIN exists in a database PDF.
 
157
  HTTPException: If files are not PDFs or processing fails.
158
  """
159
  logger.info("Received policy verification request")
160
+ db_file = "/app/list-of-products.pdf"
161
 
162
  # Validate file types
163
  if not (policy_file.filename.endswith(".pdf") and db_file.filename.endswith(".pdf")):