Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -429,8 +429,8 @@ if selected_main_option == "Dashboard":
|
|
| 429 |
elif ftype[-1]=='docx':
|
| 430 |
docs_data = openai.docx_to_text(uploaded_file)
|
| 431 |
conversation = [{"role": "system", "content": """
|
| 432 |
-
You are a helpful
|
| 433 |
-
|
| 434 |
"""},
|
| 435 |
{"role": "user", "content": f"```contract: {docs_data}```"}]
|
| 436 |
get_response = openai.get_response(conversation)
|
|
|
|
| 429 |
elif ftype[-1]=='docx':
|
| 430 |
docs_data = openai.docx_to_text(uploaded_file)
|
| 431 |
conversation = [{"role": "system", "content": """
|
| 432 |
+
You are a helpful Aggressive Terms Finder in Given Contract.
|
| 433 |
+
This is a contract document content. Your task is to find aggressive terms, warning terms and penalties in the given contract.
|
| 434 |
"""},
|
| 435 |
{"role": "user", "content": f"```contract: {docs_data}```"}]
|
| 436 |
get_response = openai.get_response(conversation)
|