Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ if 'ANTHROPIC_API_KEY' in st.secrets:
|
|
101 |
anthropic_key = st.secrets["ANTHROPIC_API_KEY"]
|
102 |
|
103 |
openai.api_key = openai_api_key
|
104 |
-
|
105 |
openai_client = OpenAI(api_key=openai.api_key, organization=os.getenv('OPENAI_ORG_ID'))
|
106 |
HF_KEY = os.getenv('HF_KEY')
|
107 |
API_URL = os.getenv('API_URL')
|
|
|
101 |
anthropic_key = st.secrets["ANTHROPIC_API_KEY"]
|
102 |
|
103 |
openai.api_key = openai_api_key
|
104 |
+
client = anthropic.Anthropic(api_key=anthropic_key)
|
105 |
openai_client = OpenAI(api_key=openai.api_key, organization=os.getenv('OPENAI_ORG_ID'))
|
106 |
HF_KEY = os.getenv('HF_KEY')
|
107 |
API_URL = os.getenv('API_URL')
|