File size: 1,127 Bytes
0ad74ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// See https://containers.dev
{
	"name": "Python 3",
	"image": "mcr.microsoft.com/devcontainers/python:1-3.9",

	// See https://containers.dev/features
	"features": {
		"ghcr.io/devcontainers/features/git:1": {},
		"ghcr.io/devcontainers/features/node:1": {},
		"ghcr.io/devcontainers-contrib/features/ffmpeg-apt-get:1": {}
	},

	"hostRequirements": {
		"cpus": 4,
		"memory": "8gb",
		"storage": "32gb"
	},

	"customizations": {
		"vscode": {
			"extensions": [
				"ms-python.python",
				"ms-python.vscode-pylance",
				"ms-python.black-formatter",
				"ms-toolsai.jupyter",
				"esbenp.prettier-vscode",
				"svelte.svelte-vscode",
				"phoenisx.cssvar"
			],
			"remote.autoForwardPorts": false
		}
	},

	"forwardPorts": [7860, 9876],
	"portsAttributes": {
		"7860": { "label": "gradio port" },
		"9876": { "label": "gradio dev port" }
	},

	"postCreateCommand": "export NODE_OPTIONS=\"--max-old-space-size=8192\" && chmod +x scripts/install_gradio.sh scripts/install_test_requirements.sh scripts/build_frontend.sh && ./scripts/install_gradio.sh && ./scripts/install_test_requirements.sh && ./scripts/build_frontend.sh"
}