alireza-2003 commited on
Commit
a12e4e9
·
verified ·
1 Parent(s): 80dc35f

Update api_call.py

Browse files
Files changed (1) hide show
  1. api_call.py +1 -4
api_call.py CHANGED
@@ -12,7 +12,6 @@ class Chain:
12
  # Load environment variables
13
  load_dotenv()
14
  self.mistral_api_key = os.getenv("MISTRAL_API_KEY")
15
- print(self.mistral_api_key, os.getenv("MISTRAL_API_KEY"))
16
  self.model = model
17
  # Initialize model and parser
18
  self.model = ChatMistralAI(model=self.model, api_key=self.mistral_api_key)
@@ -51,8 +50,7 @@ class Chain:
51
  Comparison of two Tiletels with retry mechanism for rate limiting
52
  """
53
  retries = 0
54
- print('titles', end='\n ------- \n\n')
55
- print(self.mistral_api_key, end='\n ------- \n\n')
56
  while retries < max_retries:
57
  try:
58
  response = self.chain_single.invoke({"titles": titles})
@@ -69,7 +67,6 @@ class Chain:
69
 
70
 
71
  def classify(self, title_0, title_1, max_retries=10):
72
- print('mistral: ', title_0, title_1)
73
  return self._classify_with_backoff(f"{title_0} and {title_1}", max_retries)
74
 
75
 
 
12
  # Load environment variables
13
  load_dotenv()
14
  self.mistral_api_key = os.getenv("MISTRAL_API_KEY")
 
15
  self.model = model
16
  # Initialize model and parser
17
  self.model = ChatMistralAI(model=self.model, api_key=self.mistral_api_key)
 
50
  Comparison of two Tiletels with retry mechanism for rate limiting
51
  """
52
  retries = 0
53
+
 
54
  while retries < max_retries:
55
  try:
56
  response = self.chain_single.invoke({"titles": titles})
 
67
 
68
 
69
  def classify(self, title_0, title_1, max_retries=10):
 
70
  return self._classify_with_backoff(f"{title_0} and {title_1}", max_retries)
71
 
72