-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
101 lines (100 loc) · 2.14 KB
/
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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import os
JOBS = [
{
'subscription': 'init-generate',
'next-job': 'init-story'
},
{
'subscription': 'completed-init-story',
'next-job': 'text-to-spec'
},
{
'subscription': 'completed-text-to-spec',
'next-job': 'speech-to-landmarks'
},
{
'subscription': 'completed-speech-to-landmarks',
'next-job': 'prepare-for-inference'
},
{
'subscription': 'completed-prepare-for-inference',
'next-job': 'calculate-transitions'
},
{
'subscription': 'completed-speech-to-landmarks-2',
'next-job': 'captions-generator'
},
{
'subscription': 'completed-captions-generator',
'next-job': 'html-capture'
},
{
'subscription': 'completed-calculate-transitions',
'next-job': 'pix-to-pix'
},
{
'subscription': 'completed-pix-to-pix',
'next-job': 'rotate-images'
},
{
'subscription': 'completed-rotate-images',
'next-job': 'images-to-video'
},
{
'subscription': 'completed-images-to-video',
'next-job': 'adjust-anchor'
},
{
'subscription': 'completed-adjust-anchor',
'next-job': 'add-mask'
},
{
'subscription': 'completed-add-mask',
'next-job': 'animate-anchor'
},
{
'subscription': 'completed-animate-anchor',
'next-job': 'add-audio-to-story'
},
{
'subscription': 'completed-add-audio-to-story',
'next-job': 'add-presenter-bg'
},
{
'subscription': 'completed-add-presenter-bg',
'next-job': 'add-bg-to-story'
},
{
'subscription': 'completed-add-bg-to-story',
'next-job': 'add-images-to-story'
},
{
'subscription': 'completed-add-images-to-story',
'next-job': 'add-category-logo-to-story'
},
{
'subscription': 'completed-add-category-logo-to-story',
'next-job': 'images-to-dynamic-overlay'
},
{
'subscription': 'completed-images-to-dynamic-overlay',
'next-job': 'add-dynamic-overlay-to-story'
},
{
'subscription': 'completed-add-dynamic-overlay-to-story',
'next-job': 'normalize-audio'
},
{
'subscription': 'completed-normalize-audio',
'next-job': 'export-story'
},
{
'subscription': 'completed-export-story',
'next-job': 'end-story'
},
{
'subscription': 'completed-end-story'
}
]
COMPUTE_PROJECT_NAME = os.environ.get('COMPUTE_PROJECT_NAME')
TMP_STORY_DIR = '/data/k8s'