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.

64 lines
1.2 KiB

  1. <template lang="pug">
  2. extends ./upload.pug
  3. block select-format-area
  4. label.radio
  5. input(
  6. v-model="format"
  7. v-bind:checked="format == 'plain'"
  8. type="radio"
  9. name="format"
  10. value="plain"
  11. )
  12. | Plain
  13. label.radio
  14. input(
  15. type="radio"
  16. name="format"
  17. value="csv"
  18. v-bind:checked="format === 'csv'"
  19. v-model="format"
  20. )
  21. | CSV
  22. label.radio
  23. input(
  24. type="radio"
  25. name="format"
  26. value="json"
  27. v-bind:checked="format === 'json'"
  28. v-model="format"
  29. )
  30. | JSONL
  31. label.radio
  32. input(
  33. type="radio"
  34. name="format"
  35. value="excel"
  36. v-bind:checked="format === 'excel'"
  37. v-model="format"
  38. )
  39. | Excel
  40. block example-format-area
  41. pre.code-block(v-show="format === 'plain'")
  42. code.plaintext
  43. include ./examples/upload_seq2seq.txt
  44. | ...
  45. pre.code-block(v-show="format === 'csv'")
  46. code.csv
  47. include ./examples/upload_seq2seq.csv
  48. | ...
  49. pre.code-block(v-show="format === 'json'")
  50. code.json
  51. include ./examples/upload_seq2seq.jsonl
  52. | ...
  53. </template>
  54. <script>
  55. import uploadMixin from './uploadMixin';
  56. export default uploadMixin;
  57. </script>