Spaces:
Sleeping
Sleeping
Ley_Fill7
commited on
Commit
·
17d0417
1
Parent(s):
5057f72
Use environment variable for NVIDIANIM API KEY
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
from openai import OpenAI
|
2 |
import streamlit as st
|
|
|
|
|
|
|
3 |
|
4 |
client = OpenAI(
|
5 |
base_url="https://integrate.api.nvidia.com/v1",
|
6 |
-
api_key=
|
7 |
)
|
8 |
|
9 |
model_name = "meta/llama-3.1-405b-instruct"
|
|
|
1 |
from openai import OpenAI
|
2 |
import streamlit as st
|
3 |
+
import os
|
4 |
+
|
5 |
+
api_key = os.getenv("NVIDIANIM_API_KEY")
|
6 |
|
7 |
client = OpenAI(
|
8 |
base_url="https://integrate.api.nvidia.com/v1",
|
9 |
+
api_key=api_key,
|
10 |
)
|
11 |
|
12 |
model_name = "meta/llama-3.1-405b-instruct"
|