-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:eaudeweb/NLPService
- Loading branch information
Showing
11 changed files
with
213 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<template> | ||
<v-container grid-list-md> | ||
<v-layout row wrap> | ||
<v-flex xs12 md12> | ||
<h2 class="headline font-weight-bold mb-3">Retrain</h2> | ||
</v-flex> | ||
|
||
<v-flex xs12 md6> | ||
<v-sheet color="green lighten-3" elevation="1" min-height="10em"> | ||
<h4>Set models for retraining</h4> | ||
<v-select multiple :items="models" label="Model" @change="setModel"></v-select> | ||
</v-sheet> | ||
</v-flex> | ||
|
||
<v-flex xs12 md12> | ||
<v-btn primary @click="submit">Submit</v-btn> | ||
</v-flex> | ||
|
||
</v-layout> | ||
</v-container> | ||
</template> | ||
<script> | ||
import axios from 'axios' | ||
export default { | ||
components: { | ||
}, | ||
data () { | ||
return { | ||
'models': [], | ||
'retrain': [] | ||
} | ||
}, | ||
methods: { | ||
setModel(value) { | ||
this.retrain = value | ||
}, | ||
submit() { | ||
axios | ||
.post('http://localhost:6543/classify/', | ||
{ | ||
'models': this.retrain, | ||
}) | ||
.then((resp) => { | ||
this.scores = resp.data.result | ||
}) | ||
} | ||
}, | ||
mounted() { | ||
axios | ||
.get('http://localhost:6543/classify/') | ||
.then((resp) => { | ||
this.models = resp.data.result | ||
}) | ||
} | ||
} | ||
</script> | ||
<style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.