Spaces:
Runtime error
Runtime error
File size: 3,103 Bytes
c109682 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
<!-- html ํ๊ทธ : HTML๋ก ์์ฑ๋์ด ์๋ค๋ ๊ฒ์ ์๋ ค์ค -->
<!-- html ํ๊ทธ : html ํ์ผ ์ ์ฒด๋ฅผ ๊ฐ์ธ๋ ํ๊ทธ -->
<html>
<!-- head ํ๊ทธ : ๋จธ๋ฆฌ๋ง์ ํด๋น -->
<!-- head ํ๊ทธ : css๋ javascript๋ฅผ ์ฐ๊ฒฐํด์ค -->
<!-- head ํ๊ทธ : ํ๋น์ฝ์ด๋ ๋ฌธ์์ด ์ธ์ฝ๋ฉ๊ณผ ๊ฐ์ ๋ฌธ์์ ๋ค์ํ ์ ๋ณด๋ฅผ ์ ๊ณต -->
<head>
<!-- link ํ๊ทธ : ์ฃผ๋ก ์ธ๋ถ css ํ์ผ์ ์ฐ๊ฒฐํ ๋ ์ฌ์ฉ -->
<link rel="stylesheet" href="static/css/news.css" />
<!-- jQuery -->
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'></script>
<!-- script ํ๊ทธ : ์ธ๋ถ js ํ์ผ์ ์ฐ๊ฒฐํ๊ฑฐ๋ javascript ์ฝ๋๋ฅผ ์
๋ ฅํ ๋ ์ฌ์ฉ -->
<script type="text/javascript" src="static/js/news.js"></script>
</head>
<!-- body ํ๊ทธ : ๋ณธ๋ฌธ์ ํด๋นํ๋ ๋ถ๋ถ, ์ค์ ๋ณด์ฌ์ง๋ ํ๋ฉด์ ํด๋น -->
<body>
<h1><a class="gohome" href="/">Stock News Summaries AI</a></h1>
<a class="goticker"><h2 class="tickerName">{{embed1}}</h2></a>
<h3 class="titleDate">{{embed2}}</h2>
<h3 class="titleName">{{embed3}}</h2>
<h3 class="NewsURL">URL: <a class="input-News-URL" target=โ_blankโ>{{embed4}}</a></h2>
<!-- named entity recognition (NER) -->
<figure style="margin-bottom: 6rem">
<div class="entities" style="line-height: 2.5; direction: ltr">
</div>
</figure>
<!-- section ํ๊ทธ : HTML ๋ฌธ์์ ํฌํจ๋ ๋
๋ฆฝ์ ์ธ ์น์
์ ์ ์ํ ๋ ์ฌ์ฉ -->
<section id="model">
<h2>Questions about Stock's News</h2>
<!-- p ํ๊ทธ : paragraph, ์ฆ ๋ฌธ๋จ์ ์ฝ์๋ก, ํ๋์ ๋ฌธ๋จ์ ๋ง๋ค ๋ ์ฌ์ฉ -->
<p>
Model :
<!-- target="_blank" : ๊ธฐ๋ณธ์์ฑ ์ค ํ๋๋ก ํด๋ฆญ์ ๊ณ์ํด์ ์๋ก์ด ์ฐฝ์ด ์ด๋ฆฌ๊ฒ ๋๋ค. -->
<a
href="https://huggingface.co/allenai/tk-instruct-base-def-pos"
rel="noeferrer"
target="_blank">Tk-instruct Model</a
>
</p>
<!-- form ํ๊ทธ : ๋ฐ์ดํฐ๋ฅผ ์ ์กํ๊ธฐ ์ํ ํ๊ทธ -->
<!-- form ํ๊ทธ : ๋ฐ์ดํฐ๋ฅผ ์ ์กํ url (action ์์ฑ) -->
<!-- form ํ๊ทธ : ๋ฐ์ดํฐ ์ ๋ฌ ๋ฐฉ์์ด get์ธ์ง post์ธ์ง ๊ฒฐ์ (method ์์ฑ) -->
<form class="text-form">
<!-- label ํ๊ทธ๋ for ์์ฑ์ ์ฌ์ฉํด์ input ํ๊ทธ์ id ์์ฑ์ ์ฐ๊ณํด์ ์ฌ์ฉ -->
<label for="text-input">[ Questions ]</label> <br>
<input
id="text-input"
type="text"
placeholder="Input Questions"
value="Why did Alphabet's stock go down?"
/>
<button id="text-submit">Submit</button>
<p> [ Answer ] </p>
<p class="text-output"></p>
</form>
</section>
</body>
</html> |