Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
automated_image_processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hyunseok_Sang
automated_image_processing
Commits
94f93a8d
Commit
94f93a8d
authored
2 years ago
by
Hyunseok_Sang
Browse files
Options
Downloads
Patches
Plain Diff
minor update
parent
112ec252
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-1
3 additions, 1 deletion
.gitignore
image_processing_app/requirements.txt
+3
-2
3 additions, 2 deletions
image_processing_app/requirements.txt
image_processing_app/src/config.py
+4
-11
4 additions, 11 deletions
image_processing_app/src/config.py
with
10 additions
and
14 deletions
.gitignore
+
3
−
1
View file @
94f93a8d
...
...
@@ -8,3 +8,5 @@ config.json
*.jpg
test.py
ssfshop/
google_key.json
image_processing_app/Dockerfile
This diff is collapsed.
Click to expand it.
image_processing_app/requirements.txt
+
3
−
2
View file @
94f93a8d
onnxruntime
opencv-python
google-cloud-vision
python-dotenv
openai
retina-face
flask
python-dotenv
\ No newline at end of file
This diff is collapsed.
Click to expand it.
image_processing_app/src/config.py
+
4
−
11
View file @
94f93a8d
import
json
from
dotenv
import
load_dotenv
import
os
def
load_config
(
file_path
):
with
open
(
file_path
,
'
r
'
)
as
file
:
config_data
=
json
.
load
(
file
)
return
config_data
config
=
load_config
(
'
../conf/config.json
'
)
unet_model_location
=
config
[
"
unet_model_location
"
]
dallE_api_key
=
config
[
"
dallE_api_key
"
]
\ No newline at end of file
unet_model_location
=
os
.
getenv
(
'
UNET_MODEL_LOCATION
'
)
dallE_api_key
=
os
.
getenv
(
'
DallE_API_KEY
'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment