Ley_Fill7 commited on
Commit
17d0417
·
1 Parent(s): 5057f72

Use environment variable for NVIDIANIM API KEY

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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="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",
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"