You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
456 B

  1. import Vue from 'vue';
  2. import { demoTranslation as data } from '../components/demo/demo_data';
  3. import DemoApi from '../components/demo/demo_api';
  4. import Seq2Seq from '../components/seq2seq.vue';
  5. Vue.use(require('vue-shortkey'));
  6. const demoApi = new DemoApi(data, 'text');
  7. new Vue({
  8. el: '#mail-app',
  9. components: { Seq2Seq },
  10. beforeCreate() {
  11. demoApi.start();
  12. },
  13. beforeDestroy() {
  14. demoApi.stop();
  15. },
  16. template: '<Seq2Seq />',
  17. });