Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
158 |
-
|
159 |
-
|
160 |
|
161 |
-
|
162 |
-
|
163 |
-
|
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:
|