Spaces:
Running
Running
naveenvenkatesh
commited on
Commit
•
a3582f4
1
Parent(s):
1228921
Update contract_missing_clausses.py
Browse files
contract_missing_clausses.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
-
import
|
2 |
from PyPDF2 import PdfReader
|
3 |
import logging
|
4 |
|
|
|
5 |
# Configure logging
|
6 |
logging.basicConfig(
|
7 |
filename='contract_missing_clausses.log', # You can adjust the log file name here
|
@@ -37,7 +38,7 @@ class ContractMissingClauses:
|
|
37 |
Initialize the ContractMissingClauses class and set up the OpenAI API client.
|
38 |
"""
|
39 |
|
40 |
-
|
41 |
|
42 |
def get_missing_clauses(self, contract: str):
|
43 |
|
|
|
1 |
+
from openai import OpenAI
|
2 |
from PyPDF2 import PdfReader
|
3 |
import logging
|
4 |
|
5 |
+
|
6 |
# Configure logging
|
7 |
logging.basicConfig(
|
8 |
filename='contract_missing_clausses.log', # You can adjust the log file name here
|
|
|
38 |
Initialize the ContractMissingClauses class and set up the OpenAI API client.
|
39 |
"""
|
40 |
|
41 |
+
self.client = OpenAI()
|
42 |
|
43 |
def get_missing_clauses(self, contract: str):
|
44 |
|