mhtahir commited on
Commit
b945475
·
verified ·
1 Parent(s): a0af374

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -89,9 +89,9 @@ class Me:
89
 
90
  def openai_client(self):
91
  if self.client is None:
92
- self.client = OpenAI(
93
- api_key=os.environ["OPENAI_API_KEY"]
94
- )
95
  return self.client
96
 
97
  def handle_tool_call(self, tool_calls):
 
89
 
90
  def openai_client(self):
91
  if self.client is None:
92
+ api_key = os.environ["OPENAI_API_KEY"].strip()
93
+ self.client = OpenAI(api_key=api_key)
94
+
95
  return self.client
96
 
97
  def handle_tool_call(self, tool_calls):