Raj Jayendrakumar Muchhala commited on
Commit
4e88dff
·
1 Parent(s): 06dc3be

update secrets

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import streamlit as st
2
  from openai import OpenAI
3
  from prompts import SYSTEM_MESSAGE, USER_MESSAGE
4
  import json
 
5
 
6
  # Set Streamlit layout to wide mode
7
  st.set_page_config(layout="wide")
@@ -10,7 +11,7 @@ st.title("🎬 AI-Powered Content Planner")
10
  st.markdown("Paste a transcript on the left and view the generated content plan on the right.")
11
 
12
  # Sidebar for OpenAI API Key
13
- OPENAI_API_KEY = st.sidebar.text_input("Enter OpenAI API Key", type="password")
14
  MODEL = "gpt-4o-2024-08-06"
15
 
16
  if not OPENAI_API_KEY:
 
2
  from openai import OpenAI
3
  from prompts import SYSTEM_MESSAGE, USER_MESSAGE
4
  import json
5
+ import os
6
 
7
  # Set Streamlit layout to wide mode
8
  st.set_page_config(layout="wide")
 
11
  st.markdown("Paste a transcript on the left and view the generated content plan on the right.")
12
 
13
  # Sidebar for OpenAI API Key
14
+ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
15
  MODEL = "gpt-4o-2024-08-06"
16
 
17
  if not OPENAI_API_KEY: