File size: 3,518 Bytes
ad78747
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
    <head>
        <title>Text summarization API</title>
        <meta charset="utf-8" />
        {# <link href="{{ url_for('static', path='/styles.css') }}" rel="stylesheet"> #}
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
		<link rel="stylesheet" href="{{ url_for('templates', path='site_helios/assets/css/main.css') }}" />
        <script>
            function customReset()
            {
                document.getElementById("my_form").value = "";
                document.getElementById("text").value = "";
                document.getElementById("summary").value = "";
            }
        </script>
    </head>
    <body>
			<!-- Header -->
				<div id="header">

					<!-- Inner -->
						<div class="inner">
							<header>
								<h1>Text summarization API</h1>
								<hr />
							</header>
						</div>

					<!-- Nav -->
						<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">
                                    <!-- <img src="{{ url_for('static', path='/plurital.jpg') }}" alt="Plurital"> -->
                                        <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>