Spaces:
Runtime error
Runtime error
File size: 7,887 Bytes
c109682 8d21d0b c109682 8d21d0b c109682 8d21d0b c109682 8d21d0b c109682 8d21d0b c109682 8d21d0b c109682 8d21d0b 2a479da 8d21d0b 4a5c163 8d21d0b c109682 8d21d0b 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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
<!-- html ํ๊ทธ : HTML๋ก ์์ฑ๋์ด ์๋ค๋ ๊ฒ์ ์๋ ค์ค -->
<!-- html ํ๊ทธ : html ํ์ผ ์ ์ฒด๋ฅผ ๊ฐ์ธ๋ ํ๊ทธ -->
<html>
<!-- head ํ๊ทธ : ๋จธ๋ฆฌ๋ง์ ํด๋น -->
<!-- head ํ๊ทธ : css๋ javascript๋ฅผ ์ฐ๊ฒฐํด์ค -->
<!-- head ํ๊ทธ : ํ๋น์ฝ์ด๋ ๋ฌธ์์ด ์ธ์ฝ๋ฉ๊ณผ ๊ฐ์ ๋ฌธ์์ ๋ค์ํ ์ ๋ณด๋ฅผ ์ ๊ณต -->
<head>
<!-- link ํ๊ทธ : ์ฃผ๋ก ์ธ๋ถ css ํ์ผ์ ์ฐ๊ฒฐํ ๋ ์ฌ์ฉ -->
<link rel="stylesheet" href="static/css/style.css" />
<!-- jQuery -->
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js'></script>
<!-- script ํ๊ทธ : ์ธ๋ถ js ํ์ผ์ ์ฐ๊ฒฐํ๊ฑฐ๋ javascript ์ฝ๋๋ฅผ ์
๋ ฅํ ๋ ์ฌ์ฉ -->
<script type="text/javascript" src="static/js/utils.js"></script>
<script type="text/javascript" src="static/js/index.js"></script>
<!-- Draw Chart Library -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="static/js/chartjs-chart-financial.js" type="text/javascript"></script>
</head>
<!-- [ id class ์ฐจ์ด ] -->
<!-- id : ํ ๋ฌธ์์ ๋จ ํ๋์ ์์์๋ง ์ ์ฉ(์ค๋ณตX) -->
<!-- id : ํน์ ์์์ ์ด๋ฆ์ ๋ถ์ด๋๋ฐ ์ฌ์ฉ -->
<!-- class : ๋์ผํ ๊ฐ์ ๊ฐ๋ ์์ ๋ง์ -->
<!-- class : ์คํ์ผ์ ๋ถ๋ฅ์ ์ฌ์ฉ -->
<!-- body ํ๊ทธ : ๋ณธ๋ฌธ์ ํด๋นํ๋ ๋ถ๋ถ, ์ค์ ๋ณด์ฌ์ง๋ ํ๋ฉด์ ํด๋น -->
<body>
<!-- block = show, none = hide -->
<div id="nasdaq-table-container" style="display: block">
<h1><a class="gohome" style="text-decoration: none;" href="" onclick="sendAjax('/', undefined, undefined);"> Stock News NER & Analysis </a></h1>
<p id='embed'>{{embed}}</p>
<p id='mylog' />
<div class="stocks_wrap">
<div class="stocks_columns">
<div class="column ticker">Ticker</div>
<div class="column name">Name</div>
<div class="column dff">Diff</div>
<div class="column open">Open</div>
<div class="column close">Close</div>
<div class="column sector">Sector</div>
<div class="column industry">Industry</div>
</div>
<div class="stocks"></div>
</div>
</div>
<!-- block = show, none = hide -->
<div id="chart-container" style="display: block">
<h1><a class="gohome" style="text-decoration: none;" href="/">Stock News Summaries AI</a></h1>
<a class="goticker" style="text-decoration: none;"><h2 class="tickerName"></h2></a>
<div>
<div id="chart-container" width="974" height="486"></div>
<div class="myChart-container">
<canvas id="myChart"></canvas>
</div>
</div>
<!--
[ ์์ฑ ]
align : ์ ๋ ฌ์ ์ง์ ํ๋ค. (left, center, right)
border : ํ
๋๋ฆฌ ์ ์ ๋๊ป๋ฅผ ์ง์ ํ๋ค.
bgcolor : ๋ฐฐ๊ฒฝ์์ ์ง์ ํ๋ค. (์์ "red", "black" ์ฒ๋ผ ๊ธฐ์กด์ ์ ์๋์ด์๋ ์์ ์ฌ์ฉํ ์๋ ์์ผ๋ฉฐ
rgbํ์์ #000000 ์ผ๋ก๋ ์์ ์ง์ ํ ์ ์๋ค.)
bordercolor : ํ
๋๋ฆฌ ์ ์ ์์ ์ง์ ํ๋ค. ์์ ์ง์ ํ๋ ๋ฐฉ๋ฒ์ bgcolor์ ๋์ผํ๋ค.
cellspacing : ์
๊ฐ์ ๊ฐ๊ฒฉ์ ์ง์ ํ๋ค.
width : ๊ฐ๋ก ๊ธธ์ด๋ฅผ ์ง์ ํ๋ค. (์์ ๊ฐ์ ์
๋ ฅํ ์๋, % ๋จ์๋ก ์
๋ ฅํ ์ ์๋ค.
%๋ฅผ ์ฌ์ฉํ ๋๋ ์น๋ธ๋ผ์ฐ์ ํฌ๊ธฐ์ ๋ํ % ์ด๋ค.)
height : ์ธ๋ก ๊ธธ์ด๋ฅผ ์ง์ ํ๋ค.
rawspan : ์ง์ ํ ๊ฐ๋งํผ ํ์ ๋ณํฉํ๋ค. (์์๋๋ก)
colspan : ์ง์ ํ ๊ฐ๋งํผ ์ด์ ๋ณํฉํ๋ค. (์ข์ฐ๋ก)
-->
<!-- table ํ๊ทธ : ํ
์ด๋ธ์ ๋ง๋ ๋ค. -->
<table class="table"
border="1"
width="90%"
height="200"
cellspacing="5">
<!-- caption ํ๊ทธ : ํ
์ด๋ธ ์ด๋ฆ ํ์ -->
<caption class="table-title"></caption>
<!-- ํ
์ด๋ธ์ ํค๋ ์์ญ ์ง์ -->
<thread>
<!-- tr ํ๊ทธ : ํ
์ด๋ธ์ ํ(๊ฐ๋ก ํ์ค)์ ๋ง๋ ๋ค. -->
<tr align="center" bgcolor="white">
<!-- td ํ๊ทธ : ํ
์ด๋ธ์ ์ด์ ๋ง๋ ๋ค. -->
<td width="5%"></td>
<!-- th ํ๊ทธ : ํ
์ด๋ธ(ํ)์ ํค๋ ๋ถ๋ถ(์๋์ผ๋ก ๊ฐ์ด๋ฐ ์ ๋ ฌ, ๊ตต๊ฒ ์ ์ฉ) -->
<th width="10%">Date</th>
<th width="10%">Diff</th>
<th class="title-width">Articles</th>
</tr>
</thread>
<!-- tbody ํ๊ทธ : -->
<tbody class="news-table">
<!-- News: Date, Diff, Title ์ถ๊ฐ -->
</tbody>
</table>
</div>
<!-- block = show, none = hide -->
<div id="news-container" style="display: block">
<h1><a class="gohome" style="text-decoration: none;" href="/">Stock News Summaries AI</a></h1>
<a class="goticker" style="text-decoration: none;"><h2 class="tickerName"></h2></a>
<h3 class="titleDate"></h2>
<h3 class="titleName"></h2>
<h3 class="newsURL"><a class="input-News-URL" target=โ_blankโ></a></h2>
<!-- named entity recognition (NER) -->
<figure style="margin-bottom: 6rem">
<div class="entities" style="line-height: 1.3; 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>
</div>
</body>
</html> |