NazmulHasanNihal commited on
Commit
20ce52f
·
verified ·
1 Parent(s): 40ddc44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from datetime import datetime
5
 
6
  client = OpenAI(
7
  base_url = "https://integrate.api.nvidia.com/v1",
8
- api_key = "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"
9
  )
10
 
11
 
@@ -16,7 +16,7 @@ with st.sidebar:
16
  st.markdown("This is a basic chatbot. Ask anything. The app is supported by Nazmul Hasan Nihal")
17
  if st.button("Clear Session"):
18
  st.session_state.clear()
19
- st.write(f"Copyright 2023-{datetime.now().year Present Nazmul Hasan Nihal")
20
 
21
  if "openai_model" not in st.session_state:
22
  st.session_state['openai_model'] = "invidia/nemotron_4"
 
5
 
6
  client = OpenAI(
7
  base_url = "https://integrate.api.nvidia.com/v1",
8
+ api_key = os.environ["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"]
9
  )
10
 
11
 
 
16
  st.markdown("This is a basic chatbot. Ask anything. The app is supported by Nazmul Hasan Nihal")
17
  if st.button("Clear Session"):
18
  st.session_state.clear()
19
+ st.write(f"Copyright 2023-{datetime.now().year} Present Nazmul Hasan Nihal")
20
 
21
  if "openai_model" not in st.session_state:
22
  st.session_state['openai_model'] = "invidia/nemotron_4"