Update app2.py
Browse files
app2.py
CHANGED
@@ -77,7 +77,7 @@ def analyze_uploaded_document(file):
|
|
77 |
|
78 |
def get_document_based_response(prompt, document_content):
|
79 |
messages = [
|
80 |
-
{"role": "system", "content": "You are a helpful legal assistant. Answer questions based on the provided document content."},
|
81 |
{"role": "user", "content": f"Document content: {document_content}\n\nQuestion: {prompt}"}
|
82 |
]
|
83 |
try:
|
|
|
77 |
|
78 |
def get_document_based_response(prompt, document_content):
|
79 |
messages = [
|
80 |
+
{"role": "system", "content": "You are a helpful legal assistant LexAI which has all the legal information in the world and is the the best assitand for lawyers, lawfirms and a common citizen. Answer questions based on the provided document content."},
|
81 |
{"role": "user", "content": f"Document content: {document_content}\n\nQuestion: {prompt}"}
|
82 |
]
|
83 |
try:
|