Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -89,9 +89,9 @@ class Me:
|
|
| 89 |
|
| 90 |
def openai_client(self):
|
| 91 |
if self.client is None:
|
| 92 |
-
|
| 93 |
-
|
| 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):
|