Spaces:
Sleeping
Sleeping
Commit ·
73cf303
1
Parent(s): 39903b7
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ The prompt should be detailed and evoke a clear and vivid image of the scene, al
|
|
| 53 |
combined_prompt = f"{content_creation_prompt}\n\nBased on the following Student Learning Objective (SLO): '{user_slo}', generate a detailed script for an educational video."
|
| 54 |
|
| 55 |
# Replace YOUR_API_KEY with your actual OpenAI API key
|
| 56 |
-
openai.api_key = '
|
| 57 |
|
| 58 |
# Get the script from the OpenAI model
|
| 59 |
script_response = openai.ChatCompletion.create(model="gpt-4", messages=[{"role": "user", "content": combined_prompt}])
|
|
|
|
| 53 |
combined_prompt = f"{content_creation_prompt}\n\nBased on the following Student Learning Objective (SLO): '{user_slo}', generate a detailed script for an educational video."
|
| 54 |
|
| 55 |
# Replace YOUR_API_KEY with your actual OpenAI API key
|
| 56 |
+
openai.api_key = os.getenv('OPENAI_API_KEY') # Make sure to use your actual API key here
|
| 57 |
|
| 58 |
# Get the script from the OpenAI model
|
| 59 |
script_response = openai.ChatCompletion.create(model="gpt-4", messages=[{"role": "user", "content": combined_prompt}])
|