danial0203 commited on
Commit
73cf303
·
1 Parent(s): 39903b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = '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' # 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}])
 
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}])