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.

56 lines
1.1 KiB

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