Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuszik committed Sep 3, 2024
2 parents 0266d2d + 1b2b013 commit 6c8b907
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 159 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
settings.json
settings.local.toml
.secrets.toml
5 changes: 3 additions & 2 deletions settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ height = 1024
seed = -1
output_folder = ""
replicate_model = ""
prompt = ""
prompt = "Enter Prompt here..."

[user_models]
[models]
user_added = []
4 changes: 4 additions & 0 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
load_dotenv=True,
lowercase_read=False,
)


def get_api_key():
return settings.get("REPLICATE_API_KEY") or settings.get("replicate_api_key")
Loading

0 comments on commit 6c8b907

Please sign in to comment.