Spaces:
Sleeping
Sleeping
prompt4
Browse files
app.py
CHANGED
|
@@ -54,10 +54,11 @@ def send_to_flowise(file, country: str, language: str) -> str:
|
|
| 54 |
return "⚠️ No content extracted from the uploaded file."
|
| 55 |
|
| 56 |
prompt = f"""Please audit the following employment contract in light of {country} labor law.
|
| 57 |
-
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.
|
| 58 |
-
Is the contract compliant? Provide reasoning and highlight any issues, and suggest improvements.
|
| 59 |
Read line by line, be precise, and don't miss any details in the contract.
|
| 60 |
-
|
|
|
|
| 61 |
Please respond in {language}.
|
| 62 |
<CONTRACT START>
|
| 63 |
{contract_text}
|
|
|
|
| 54 |
return "⚠️ No content extracted from the uploaded file."
|
| 55 |
|
| 56 |
prompt = f"""Please audit the following employment contract in light of {country} labor law.
|
| 57 |
+
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.
|
| 58 |
+
Is the contract compliant? Provide reasoning and highlight any issues, and suggest improvements.
|
| 59 |
Read line by line, be precise, and don't miss any details in the contract.
|
| 60 |
+
Look for numbers like: salary, working hours, annual vacations, and overtime, and mention the correct numbers by law.
|
| 61 |
+
If the salary in the contract is below or above the legal minimum wage stated in the provided law document, explicitly mention the exact legal minimum wage and how the contract’s salary compares to it.
|
| 62 |
Please respond in {language}.
|
| 63 |
<CONTRACT START>
|
| 64 |
{contract_text}
|