Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,12 @@ API_KEY = os.getenv('gpt4okey')
|
|
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:")
|
18 |
if text_input:
|
|
|
10 |
# Set the API key and model name
|
11 |
MODEL = "gpt-4o"
|
12 |
|
13 |
+
# Switch to project based with limits and use org id and key to identify run pool
|
14 |
+
# models for GPT-4o project: gpt-4o-2024-05-13 (gpt-4o)
|
15 |
#client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY", "<your OpenAI API key if not set as an env var>"))
|
16 |
client = OpenAI(api_key=API_KEY)
|
17 |
|
18 |
+
|
19 |
def process_text():
|
20 |
text_input = st.text_input("Enter your text:")
|
21 |
if text_input:
|