Rasha-83 commited on
Commit
e6f4188
·
verified ·
1 Parent(s): ba14c11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -71,9 +71,9 @@ class ContractAnalyzer:
71
 
72
  # البحث عن موضوع العقد
73
  subject_indicators = [
74
- "موضوع العقد", "الغرض من العقد", "يتفق الطرفان على",
75
- "اتفق الطرفان على", "حيث أن", "حيث إن", "تمهيد",
76
- "بشأن", "لغرض", "عقد"
77
  ]
78
 
79
  for indicator in subject_indicators:
@@ -82,7 +82,7 @@ class ContractAnalyzer:
82
  # البحث عن نهاية الجملة
83
  end_idx = text.find(".", start_idx)
84
  if end_idx == -1:
85
- end_idx = text.find("\n", start_idx)
86
  if end_idx != -1:
87
  subject_text = text[start_idx:end_idx].strip()
88
  # تجنب النصوص القصيرة جداً
 
71
 
72
  # البحث عن موضوع العقد
73
  subject_indicators = [
74
+ "موضوع العقد", "الغرض من العقد", "يتفق الطرفان على",
75
+ "اتفق الطرفان على", "حيث أن", "حيث إن", "تمهيد",
76
+ "بشأن", "لغرض", "عقد"
77
  ]
78
 
79
  for indicator in subject_indicators:
 
82
  # البحث عن نهاية الجملة
83
  end_idx = text.find(".", start_idx)
84
  if end_idx == -1:
85
+ end_idx = text.find("\n", start_idx)
86
  if end_idx != -1:
87
  subject_text = text[start_idx:end_idx].strip()
88
  # تجنب النصوص القصيرة جداً