manabb commited on
Commit
63c6731
·
verified ·
1 Parent(s): 033b089

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -298,7 +298,7 @@ def check_compliance(file): # FIXED: now streams
298
  else:
299
  yield "Unsupported file format"
300
  def check_compliance_tech(file_name):
301
- if file.name.endswith(".pdf"):
302
  MANUAL_RULES = manualRules()
303
  dd=compliance_tech_pdf(file_name, client, MANUAL_RULES)
304
  kkk="<table>"
 
298
  else:
299
  yield "Unsupported file format"
300
  def check_compliance_tech(file_name):
301
+ if file_name.name.endswith(".pdf"):
302
  MANUAL_RULES = manualRules()
303
  dd=compliance_tech_pdf(file_name, client, MANUAL_RULES)
304
  kkk="<table>"