Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ from moviepy.editor import VideoFileClip
|
|
9 |
# Set API key and organization ID from environment variables
|
10 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
11 |
openai.organization = os.getenv('OPENAI_ORG_ID')
|
12 |
-
client = OpenAI(api_key= os.getenv('OPENAI_API_KEY'))
|
13 |
|
14 |
# Define the model to be used
|
15 |
-
MODEL = "gpt-4o"
|
16 |
-
|
17 |
|
18 |
def process_text():
|
19 |
text_input = st.text_input("Enter your text:")
|
|
|
9 |
# Set API key and organization ID from environment variables
|
10 |
openai.api_key = os.getenv('OPENAI_API_KEY')
|
11 |
openai.organization = os.getenv('OPENAI_ORG_ID')
|
12 |
+
client = OpenAI(api_key= os.getenv('OPENAI_API_KEY'), organization=os.getenv('OPENAI_ORG_ID'))
|
13 |
|
14 |
# Define the model to be used
|
15 |
+
#MODEL = "gpt-4o"
|
16 |
+
MODEL = "gpt-4o-2024-05-13"
|
17 |
|
18 |
def process_text():
|
19 |
text_input = st.text_input("Enter your text:")
|