Skip to content

Commit

Permalink
Added Streamlit secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jackati committed Feb 21, 2024
1 parent 5a2c1e8 commit 79df563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .streamlit/secrets.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REPLICATE_API_TOKEN = ""
2 changes: 1 addition & 1 deletion app/src/pages/_1_bellingcat_titles.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
load_dotenv(override=True)


REPLICATE_API_TOKEN = os.getenv("REPLICATE_API_TOKEN")
REPLICATE_API_TOKEN = st.secrets["REPLICATE_API_TOKEN"]
sentence_transformer_ef = SentenceTransformerEmbeddingFunction(
model_name="all-MiniLM-L6-v2"
)
Expand Down

0 comments on commit 79df563

Please sign in to comment.