Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
| 8 |
if not openai.api_key:
|
| 9 |
st.error("No OpenAI API key found in the environment variable OPENAI_API_KEY")
|
| 10 |
|
| 11 |
-
conversation = [{"role": "system", "content": "You are a technical and a professional QA manager, working in a technological firm. You provide test cases for a scenario
|
| 12 |
|
| 13 |
def generate_test_cases(topic, num_cases):
|
| 14 |
if topic:
|
|
@@ -31,5 +31,5 @@ num_cases = st.number_input("Number of test cases:", min_value=1, max_value=10,
|
|
| 31 |
|
| 32 |
if st.button("Generate Test Cases"):
|
| 33 |
test_cases = generate_test_cases(topic, num_cases)
|
| 34 |
-
for case in test_cases:
|
| 35 |
-
|
|
|
|
| 8 |
if not openai.api_key:
|
| 9 |
st.error("No OpenAI API key found in the environment variable OPENAI_API_KEY")
|
| 10 |
|
| 11 |
+
conversation = [{"role": "system", "content": "You are a technical and a professional QA manager, working in a technological firm. You provide test cases for a scenario. "},]
|
| 12 |
|
| 13 |
def generate_test_cases(topic, num_cases):
|
| 14 |
if topic:
|
|
|
|
| 31 |
|
| 32 |
if st.button("Generate Test Cases"):
|
| 33 |
test_cases = generate_test_cases(topic, num_cases)
|
| 34 |
+
# for case in test_cases:
|
| 35 |
+
st.write(case)
|