-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgramex.yaml
85 lines (85 loc) · 2 KB
/
gramex.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
url:
admission-home:
pattern: /$YAMLURL/
handler: FileHandler
kwargs:
path: $YAMLPATH/index.html
auth:
login_url: /$YAMLURL/login/
template: true
headers:
Cache-Control: private, max-age=1
cache:
expiry:
duration: 1
admission-login:
pattern: /$YAMLURL/login/
handler: SimpleAuth
kwargs:
template: $YAMLPATH/login.html
credentials:
alpha: alpha
beta: beta
admission-logout:
pattern: /$YAMLURL/logout/
handler: LogoutHandler
5c74c592-d155-42b4-bf2e-835153dfb520:
handler: MLHandler
kwargs:
config_dir: $YAMLPATH
data:
url: $YAMLPATH/uploads/admission (3).csv
model:
cats:
- Research
class: LogisticRegression
config_dir: $YAMLPATH
deduplicate: true
dropna: true
exclude:
- Name
nums:
- GREScore
- TOEFLScore
- UniversityRating
- SOP
- LOR
- CGPA
path: $YAMLPATH/model.pkl
target_col: Admitted
template: $YAMLPATH/mlhandler-template.html
xsrf_cookies: false
pattern: /$YAMLURL/predict
test:
auth:
user: alpha
password: alpha
import:
deploy if socket.gethostname() in {'YOUR-PROD-SERVER-NAME'}: $GRAMEXPATH/deploy.yaml
ui:
path: $GRAMEXAPPS/ui/gramex.yaml
YAMLURL: $YAMLURL/ui/
admin:
path: $GRAMEXAPPS/admin2/gramex.yaml
YAMLURL: /$YAMLURL/admin/
ADMIN_KWARGS:
logo: https://gramener.com/uistatic/gramener.png
home: /$YAMLURL/
title: Admin
theme: ?body-bg=white&navbar-dark-color=rgba(255%2C255%2C255%2C.8)&navbar-dark-hover-color=white
ADMIN_AUTH:
membership:
hd: gramener.com
handlers:
BaseHandler:
error:
400:
path: $YAMLPATH/error/400.html
401:
path: $YAMLPATH/error/401.html
403:
path: $YAMLPATH/error/403.html
404:
path: $YAMLPATH/error/404.html
500:
path: $YAMLPATH/error/500.html