Update app.py
Browse files
app.py
CHANGED
@@ -149,6 +149,13 @@ class ContractAnalyzer:
|
|
149 |
return results
|
150 |
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
# تكوين واجهة gradio
|
153 |
iface = gr.Interface(
|
154 |
fn=analyze_text,
|
|
|
149 |
return results
|
150 |
|
151 |
|
152 |
+
# إنشاء كائن المحلل
|
153 |
+
analyzer = ContractAnalyzer()
|
154 |
+
|
155 |
+
# دالة التحليل لواجهة gradio
|
156 |
+
def analyze_text(text):
|
157 |
+
return analyzer.analyze_contract(text)
|
158 |
+
|
159 |
# تكوين واجهة gradio
|
160 |
iface = gr.Interface(
|
161 |
fn=analyze_text,
|