Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit a23fd04

Browse files
Merging the applications (#8)
* successful application merge * support other formats * update latest frameworks
1 parent 04f1ea3 commit a23fd04

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

‎src/app/App.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import './App.css';
66

77
class App extends Component {
88
constructor(props) {
9-
super(props);
9+
super(props);
1010
this.state = {frameworks: this.props.frameworkImages,
11-
disableAllButton: false};
12-
11+
disableAllButton: false};
1312
this.loadingGif = "https://loading.io/spinners/double-ring/lg.double-ring-spinner.gif";
1413
this.click = this.click.bind(this);
14+
this.api = window.location.protocol+"//"+window.location.href.split('/')[2]
1515
}
1616

1717
click(f) {
@@ -22,15 +22,15 @@ class App extends Component {
2222
updatedFramework[index].loading = true;
2323
this.setState({framework:updatedFramework, disableAllButton:true})
2424

25-
fetch('http://vault.acm.illinois.edu:5656/create_container', {
25+
fetch(this.api+'/create_container', {
2626
method: 'POST',
2727
headers: {
2828
'Accept': 'application/json',
2929
'Content-Type': 'application/json',
3030
},
3131
body: JSON.stringify(f)
3232
}).then((resp) => resp.json()).then(function(res){
33-
window.location.replace(res['jupyter_url']);
33+
window.location.replace(res['ui_url']);
3434
});
3535
console.log(f)
3636
}

‎src/frameworkImages.js‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@ var FrameworkImages =
33
name:'TensorFlow',
44
details: "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook",
55
img: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Tensorflow_logo.svg/115px-Tensorflow_logo.svg.png",
6-
image: "acmuiuc/tensorflow:latest"
6+
image: "acmuiuc/tensorflow:latest",
7+
token_required: true
78
},{
89
name:'Caffe2',
910
details: "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook",
1011
img: "https://caffe2.ai/static/logo.svg",
11-
image: "acmuiuc/caffe2:latest"
12+
image: "acmuiuc/caffe2:latest",
13+
token_required: true
1214
},{
1315
name:'PyTorch',
14-
details: "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook",
16+
details: "Ubuntu 16.04 - Python 3.6 - Jupyter Notebook",
1517
img: "http://pytorch.org/static/img/pytorch-logo-dark.svg",
16-
image: "acmuiuc/pytorch:latest"
18+
image: "acmuiuc/pytorch:v0.2",
19+
token_required: true
1720
},{
1821
name:'Keras',
1922
details: "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook",
2023
img: "https://upload.wikimedia.org/wikipedia/commons/c/c9/Keras_Logo.jpg",
21-
image: "acmuiuc/keras:latest"
24+
image: "acmuiuc/keras:latest",
25+
token_required: true
2226
},{
2327
name:'NVIDIA Digits',
2428
details: "Ubuntu 16.04 - In Browser GUI",
2529
img: "https://www.scan.co.uk/images/3xs/infopages/nvidia-digits.png",
26-
image: "nvidia/digits"
30+
image: "acmuiuc/digits:latest"
2731
},{
2832
name:'Caffe',
2933
details: "Ubuntu 16.04 - C++ - SSH",
@@ -32,18 +36,20 @@ var FrameworkImages =
3236
},{
3337
name:'mxnet',
3438
details: "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook",
35-
img: "https://secure.gravatar.com/avatar/04d69822f9bb98f4d8fd1484c7954c3d.jpg?s=512&r=g&d=mm",
36-
image: "acmuiuc/mxnet"
39+
img: "https://pbs.twimg.com/profile_images/921441672684171264/ElXb2HlG_400x400.jpg",
40+
image: "acmuiuc/mxnet",
41+
token_required: true
3742
},{
3843
name:'CNTK',
3944
details: "Ubuntu 16.04 - Python 3.5 - Jupyter Notebook",
4045
img: "https://blog.paperspace.com/content/images/2016/12/cntk.png",
41-
image: "acmuiuc/cntk"
46+
image: "acmuiuc/cntk",
47+
token_required: true
4248
},{
4349
name:'Dockerfile',
4450
details: null,
4551
img: "https://cdn.worldvectorlogo.com/logos/docker.svg",
4652
image: null
4753
}]
4854

49-
module.exports = FrameworkImages;
55+
module.exports = FrameworkImages;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /