Spaces:
Sleeping
Sleeping
Update test_case_generator.py
Browse files- test_case_generator.py +1 -1
test_case_generator.py
CHANGED
@@ -10,7 +10,7 @@ class TestCaseGenerator:
|
|
10 |
def __init__(self, api_key=None):
|
11 |
# Allow API key to be passed in or read from environment
|
12 |
if api_key:
|
13 |
-
os.environ["OPENAI_API_KEY"] =
|
14 |
|
15 |
# Predefined question types
|
16 |
self.available_question_types = [
|
|
|
10 |
def __init__(self, api_key=None):
|
11 |
# Allow API key to be passed in or read from environment
|
12 |
if api_key:
|
13 |
+
os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
|
14 |
|
15 |
# Predefined question types
|
16 |
self.available_question_types = [
|