Skip to content

Commit

Permalink
feat(modeltraining): add model launch test
Browse files Browse the repository at this point in the history
  • Loading branch information
TzeHimSung committed Mar 23, 2021
1 parent 3c1b4a3 commit eac25ca
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/views/ModelTraining/index.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
<template>
<p>{{ haha }}</p>
<div>
<bk-button
class="mr10"
theme="primary"
@click="launch()"
>launch model</bk-button>
</div>
</template>

<script>
import axios from 'axios'
import { bkButton } from 'bk-magic-vue'
export default {
name: 'ModelTraining',
components: {
//
bkButton
},
data () {
return {
haha: 'Model training'
}
},
methods: {
launch () {
const param = {
modelname: 'main.py'
}
axios.post('http://localhost:8000/api/launchtest', param).then((res) => {
console.log(res)
})
}
}
}
</script>

0 comments on commit eac25ca

Please sign in to comment.