Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -716,17 +716,13 @@ async def analyze_legal_document(
|
|
716 |
"subscription_tier": current_user.subscription_tier
|
717 |
}
|
718 |
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
# Add contract clause analysis
|
727 |
-
if "contract_clause_analysis" in SUBSCRIPTION_TIERS[current_user.subscription_tier]["features"]:
|
728 |
-
clauses = analyze_contract_clauses(text)
|
729 |
-
response["contract_clauses"] = clauses
|
730 |
|
731 |
return response
|
732 |
|
|
|
716 |
"subscription_tier": current_user.subscription_tier
|
717 |
}
|
718 |
|
719 |
+
if "detailed_risk_assessment" in SUBSCRIPTION_TIERS[current_user.subscription_tier]["features"]:
|
720 |
+
detailed_risk = get_detailed_risk_info(text)
|
721 |
+
response["detailed_risk_assessment"] = detailed_risk
|
722 |
+
|
723 |
+
if "contract_clause_analysis" in SUBSCRIPTION_TIERS[current_user.subscription_tier]["features"]:
|
724 |
+
clauses = analyze_contract_clauses(text)
|
725 |
+
response["contract_clauses"] = clauses
|
|
|
|
|
|
|
|
|
726 |
|
727 |
return response
|
728 |
|