SummaryProject / templates /index.html.jinja
EstelleSkwarto's picture
site: +/-fini si 1 modèle, cleaned+commented files
2c35026
raw
history blame
No virus
2.73 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Text summarization API</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="{{ url_for('templates', path='site_style/css/main.css') }}" />
<script>
function customReset()
{
document.getElementById("my_form").value = "";
document.getElementById("text").value = "";
document.getElementById("summary").value = "";
}
</script>
</head>
<body>
<div id="header">
<div class="inner">
<header>
<h1>Text summarization API</h1>
<hr />
</header>
</div>
<nav id="nav">
<hr/>
</nav>
<div class="choixModel">
<label for="model-select">Choose a model :</label>
<select name="model" id="model-select">
<option value="lstm">LSTM</option>
<option value="autre">Autre</option>
</select>
</div>
<div>
<table>
<tr>
<td>
<form id = "my_form" action="/" method="post" class="formulaire">
<textarea id="text" name="text" placeholder="Enter your text here!" rows="15" cols="75">{{text}}</textarea>
<input type="hidden" name="textarea_value" value="{{ text }}">
</form>
</td>
<td>
<textarea id="summary" name="summary" rows="15" cols="75">{{summary}}</textarea>
</td>
</tr>
</table>
</div>
<div class="buttons">
<button form ="my_form" class='search_bn' type="submit" class="btn btn-primary btn-block btn-large" rows="1" cols="50">Go !</button>
<button form ="my_form" type="button" value="Reset" onclick="customReset();">Reset</button>
</div>
<div class="copyright">
<ul class="menu">
<li>&copy; Untitled. All rights reserved.</li>
</ul>
<ul>
<li>Projet mené dans le cadre des cours du master 2 TAL (Traitement Automatique des Langues)</li>
<li>Lingyun GAO -- Estelle SALMON -- Eve SAUVAGE</li>
</ul>
</div>
</div>
</body>
</html>