Spaces:
Sleeping
Sleeping
Update chatbot_utils.py
Browse files- chatbot_utils.py +2 -3
chatbot_utils.py
CHANGED
@@ -4,10 +4,9 @@ import json
|
|
4 |
from datetime import datetime
|
5 |
from scenario_handler import ScenarioHandler
|
6 |
import time
|
7 |
-
OPEN_API_KEY = "sk-proj-3IEelWYK3Wl251k9qNriT3BlbkFJ9M7GpUGBijobUj1LETdu"
|
8 |
-
|
9 |
-
client = OpenAI(api_key=OPEN_API_KEY)
|
10 |
|
|
|
|
|
11 |
def chatbot_response(response, handler_type='offender', n=1):
|
12 |
scenario_handler = ScenarioHandler()
|
13 |
if handler_type == 'offender':
|
|
|
4 |
from datetime import datetime
|
5 |
from scenario_handler import ScenarioHandler
|
6 |
import time
|
|
|
|
|
|
|
7 |
|
8 |
+
client = OpenAI(api_key=os.getenv("api_key"))
|
9 |
+
print(api_key)
|
10 |
def chatbot_response(response, handler_type='offender', n=1):
|
11 |
scenario_handler = ScenarioHandler()
|
12 |
if handler_type == 'offender':
|