Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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>"
|