-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_config.py
46 lines (34 loc) · 811 Bytes
/
app_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
Strong type the app config
"""
from dataclasses import dataclass, field
from typing import List
@dataclass
class AppConfig:
"""
URL for the project
"""
CUSTOM_VISION_ENDPOINT: str = ""
"""
ID of the Custom Vision Project
"""
CUSTOM_VISION_PROJECT_ID: str = ""
"""
Training Key
"""
CUSTOM_VISION_KEY: str = ""
"""
Name of the published training iteration to run inference on
"""
CUSTOM_VISION_PUBLISHED_ITERATION_NAME: str = ""
"""
Source folder of images to process
"""
SOURCE_FOLDER: str = ""
"""
Minimum threshold to be considered a hit
"""
PROBABILIY_THRESHOLD: float = 0.5
#Remove python's scaffolding of the init so we don't have to force default values
def __init__(self):
pass