rosolsharairh commited on
Commit
e8d85eb
·
verified ·
1 Parent(s): 6ebc29d
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,8 +10,8 @@ import gradio as gr
10
  from langdetect import detect
11
  from pdf2docx import Converter # <-- new library for PDF to DOCX
12
 
13
- COUNTRIES = ["USA", "Germany", "UAE", "Turkey", "Jordan"]
14
- LANGUAGES = ["English", "Arabic"]
15
 
16
  logging.basicConfig(level=logging.INFO)
17
 
@@ -56,7 +56,7 @@ def send_to_flowise(file, country: str, language: str) -> str:
56
  Only refer to the provided law document (do not use external knowledge), but you don't have to mention the exact source of info while answering.
57
  Is the contract compliant? Provide reasoning and highlight any issues, and suggest improvements.
58
  Read line by line, be precise, and don't miss any details in the contract.
59
- look for numbers like: salary, working hours, and annual vacations, and mention the correct numbers by law when needed.
60
  Please respond in {language}.
61
  <CONTRACT START>
62
  {contract_text}
 
10
  from langdetect import detect
11
  from pdf2docx import Converter # <-- new library for PDF to DOCX
12
 
13
+ COUNTRIES = ["Jordan", "Germany", "UAE", "Turkey", "USA"]
14
+ LANGUAGES = ["Arabic", "English"]
15
 
16
  logging.basicConfig(level=logging.INFO)
17
 
 
56
  Only refer to the provided law document (do not use external knowledge), but you don't have to mention the exact source of info while answering.
57
  Is the contract compliant? Provide reasoning and highlight any issues, and suggest improvements.
58
  Read line by line, be precise, and don't miss any details in the contract.
59
+ look for numbers like: salary, working hours, annual vacations, and overtime, and mention the correct numbers by law when needed.
60
  Please respond in {language}.
61
  <CONTRACT START>
62
  {contract_text}