naveenvenkatesh commited on
Commit
a3582f4
1 Parent(s): 1228921

Update contract_missing_clausses.py

Browse files
Files changed (1) hide show
  1. contract_missing_clausses.py +3 -2
contract_missing_clausses.py CHANGED
@@ -1,7 +1,8 @@
1
- import openai
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
- pass
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