Skier8402 commited on
Commit
ceb03e2
1 Parent(s): de0dbd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -154,13 +154,13 @@ def main():
154
  st.write(css, unsafe_allow_html=True)
155
 
156
  # set huggingface hub token in st.text_input widget
157
- # then hide the input
158
- huggingface_token = st.text_input("Enter your HuggingFace Hub token", type="password")
159
- #openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
160
 
161
- # set this key as an environment variable
162
- os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingface_token
163
- #os.environ["OPENAI_API_KEY"] = openai_api_key
164
 
165
 
166
  if "conversation" not in st.session_state:
 
154
  st.write(css, unsafe_allow_html=True)
155
 
156
  # set huggingface hub token in st.text_input widget
157
+ # then hide the input
158
+ huggingface_token = st.text_input("Enter your HuggingFace Hub token", type="password")
159
+ #openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
160
 
161
+ # set this key as an environment variable
162
+ os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingface_token
163
+ #os.environ["OPENAI_API_KEY"] = openai_api_key
164
 
165
 
166
  if "conversation" not in st.session_state: