update: look at todo
parent
f2bad06898
commit
0fba948649
|
@ -1,33 +1,42 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
div
|
div(v-if="loading")
|
||||||
.container.mx-auto.p-4
|
.flex.items-center.justify-center.h-screen(v-if="loading")
|
||||||
form(v-if="!loading", @submit.prevent="submitForm")
|
LoadingWheel
|
||||||
label.block.font-bold.text-lg.mb-2(for="question") Question
|
div(v-else)
|
||||||
textarea#question.border.rounded.w-full.py-2.px-3(
|
.grid.grid-cols-1.place-content-center.align-middle.gap-y-5.h-screen.text-center
|
||||||
v-model="form.question",
|
.grid.grid-cols-1.place-self-center
|
||||||
rows="5"
|
h1.text-5xl
|
||||||
)
|
a.url(href="/NLP") Internet-NLP
|
||||||
button.bg-blue-500.text-white.font-bold.py-2.px-4.rounded(
|
h1.text-2xl
|
||||||
class="hover:bg-blue-700",
|
a.url(href="/NLP/no-context/question-answering") Question Answering No Context
|
||||||
type="submit",
|
h1.text-2xl
|
||||||
v-if="form.submitCounter < 600"
|
a.url(href="/") Part of Internet-ML
|
||||||
)
|
.container.mx-auto
|
||||||
| Submit
|
form(v-if="!loading", @submit.prevent="submitForm")
|
||||||
p.bg-red-500(v-if="form.submitCounter >= 600") Please wait for sometime as you have made 600 requests within one hour.
|
label.block.font-bold.text-lg.mb-2(for="question") Question
|
||||||
.flex.items-center.justify-center.h-screen(v-if="loading")
|
textarea#question.border.rounded.w-full.py-2.px-3(
|
||||||
loadingwheel
|
v-model="form.question",
|
||||||
.mt-4.font-bold(v-if="answer !== null")
|
rows="5"
|
||||||
p Question: {{ tmpquestion }}
|
)
|
||||||
p.typed-text Answer: {{ typedAnswer }}
|
button.bg-gray-500.text-white.font-bold.py-2.px-4.rounded(
|
||||||
p Urls:
|
class="hover:bg-gray-700",
|
||||||
ul(v-if="typedAnswer.length === answer.length && urls !== null")
|
type="submit",
|
||||||
li(v-for="url in urls", :key="url")
|
v-if="form.submitCounter < 600"
|
||||||
a.url(:href="url") - {{ url }}
|
)
|
||||||
|
| Submit
|
||||||
|
p.bg-red-500(v-if="form.submitCounter >= 600") Please wait for sometime as you have made 600 requests within one hour.
|
||||||
|
.mt-4.font-bold(v-if="answer !== null")
|
||||||
|
p Question: {{ tmpquestion }}
|
||||||
|
p.typed-text Answer: {{ typedAnswer }}
|
||||||
|
p Urls:
|
||||||
|
ul(v-if="typedAnswer.length === answer.length && urls !== null")
|
||||||
|
li(v-for="url in urls", :key="url")
|
||||||
|
span -
|
||||||
|
a.url(:href="url") {{ url }}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import LoadingWheel from '~/components/LoadingWheel.vue'
|
import LoadingWheel from '@/components/LoadingWheel.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { LoadingWheel },
|
components: { LoadingWheel },
|
Loading…
Reference in New Issue