Spaces:
Running
Running
commented out Llama secrets
Browse files- app.py +4 -4
- unitesting_utils.py +2 -2
app.py
CHANGED
@@ -97,8 +97,8 @@ if 'secrets' in st.secrets:
|
|
97 |
url = st.secrets['secrets']['WEAVIATE_ENDPOINT']
|
98 |
openai_api_key = st.secrets['secrets']['OPENAI_API_KEY']
|
99 |
|
100 |
-
hf_token = st.secrets['secrets']['
|
101 |
-
hf_endpoint = st.secrets['secrets']['
|
102 |
|
103 |
else :
|
104 |
# st.write("Loading secrets for Huggingface")
|
@@ -107,8 +107,8 @@ else :
|
|
107 |
url = st.secrets['WEAVIATE_ENDPOINT']
|
108 |
openai_api_key = st.secrets['OPENAI_API_KEY']
|
109 |
|
110 |
-
hf_token = st.secrets['
|
111 |
-
hf_endpoint = st.secrets['
|
112 |
|
113 |
#%%
|
114 |
# model_default = 'sentence-transformers/all-mpnet-base-v2'
|
|
|
97 |
url = st.secrets['secrets']['WEAVIATE_ENDPOINT']
|
98 |
openai_api_key = st.secrets['secrets']['OPENAI_API_KEY']
|
99 |
|
100 |
+
# hf_token = st.secrets['secrets']['LLAMA2_ENDPOINT_HF_TOKEN']
|
101 |
+
# hf_endpoint = st.secrets['secrets']['LLAMA2_ENDPOINT']
|
102 |
|
103 |
else :
|
104 |
# st.write("Loading secrets for Huggingface")
|
|
|
107 |
url = st.secrets['WEAVIATE_ENDPOINT']
|
108 |
openai_api_key = st.secrets['OPENAI_API_KEY']
|
109 |
|
110 |
+
# hf_token = st.secrets['LLAMA2_ENDPOINT_HF_TOKEN']
|
111 |
+
# hf_endpoint = st.secrets['LLAMA2_ENDPOINT']
|
112 |
|
113 |
#%%
|
114 |
# model_default = 'sentence-transformers/all-mpnet-base-v2'
|
unitesting_utils.py
CHANGED
@@ -5,9 +5,9 @@ def load_impact_theory_data():
|
|
5 |
'''
|
6 |
Loads impact_theory_data.json data by trying three options:
|
7 |
1. Assumes user is in Google Colab environment and loads file from content dir.
|
8 |
-
2. If 1st option doesn't work, assumes user is in
|
9 |
3. If 2nd option doesn't work, assumes user does not have direct access to data so
|
10 |
-
downloads data direct from
|
11 |
'''
|
12 |
try:
|
13 |
path = '/content/impact_theory_data.json'
|
|
|
5 |
'''
|
6 |
Loads impact_theory_data.json data by trying three options:
|
7 |
1. Assumes user is in Google Colab environment and loads file from content dir.
|
8 |
+
2. If 1st option doesn't work, assumes user is in repo and loads from data dir.
|
9 |
3. If 2nd option doesn't work, assumes user does not have direct access to data so
|
10 |
+
downloads data direct from repo.
|
11 |
'''
|
12 |
try:
|
13 |
path = '/content/impact_theory_data.json'
|