Spaces:
Sleeping
Sleeping
karthikeyan-r
commited on
Commit
•
92ddd03
1
Parent(s):
56a3296
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)
|