Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 |
-
|
|
|
|
|
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:")
|