awacke1 commited on
Commit
e400aa9
1 Parent(s): 89a617c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -5,9 +5,13 @@ import base64
5
  import cv2
6
  from moviepy.editor import VideoFileClip
7
 
 
 
8
  # Set the API key and model name
9
  MODEL = "gpt-4o"
10
- client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY", "<your OpenAI API key if not set as an env var>"))
 
 
11
 
12
  def process_text():
13
  text_input = st.text_input("Enter your text:")
 
5
  import cv2
6
  from moviepy.editor import VideoFileClip
7
 
8
+ API_KEY = os.getenv('GPT-4o')
9
+
10
  # Set the API key and model name
11
  MODEL = "gpt-4o"
12
+
13
+ #client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY", "<your OpenAI API key if not set as an env var>"))
14
+ client = OpenAI(api_key=API_KEY)
15
 
16
  def process_text():
17
  text_input = st.text_input("Enter your text:")