-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
55 lines (52 loc) · 1.15 KB
/
config.yml
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
47
48
49
50
51
52
53
54
55
# resource directories
models_dir: "data/models"
training_dir: "data/texts"
unicode_dir: "data/unicode"
# logging, see https://docs.python.org/3/library/logging.config.html#logging-config-fileformat
logging:
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: simple
stream: ext://sys.stdout
loggers:
simpleExample:
level: DEBUG
handlers: [console]
propagate: no
root:
level: DEBUG
handlers: [console]
## CORS setting for the web API
CORS:
allowed_origins:
- "*"
allowed_methods:
- "OPTIONS"
- "GET"
- "PUT"
- "POST"
- "DELETE"
- "HEAD"
allowed_headers:
- "X-Requested-With"
- "Content-Type"
- "Accept"
- "Origin"
## web API settings
api:
port: 8050
host: "0.0.0.0"
# to specify a custom default header in the response
#header:
log_level: "debug"
reload: false
# the following is used in the generated API documentation
version: "0.1"
name: "OCR scorer web API"
description: "Web API for the OCR scorer service"
api_route: ""