Spaces:
Runtime error
Runtime error
nehalelkaref
commited on
Commit
โข
39f0495
1
Parent(s):
4459943
Update templates/home.html
Browse files- templates/home.html +1 -26
templates/home.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<main>
|
2 |
<section id="text-classification">
|
3 |
<head>
|
4 |
-
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename= 'CSS/
|
5 |
</head>
|
6 |
<body>
|
7 |
<h2>ุชุตููู ุงูู
ูุงุทู </h2>
|
@@ -18,31 +18,6 @@
|
|
18 |
<br>
|
19 |
<input id="text" type="submit" value="ุตูููู" class="button-89">
|
20 |
<br>
|
21 |
-
|
22 |
-
<div class="container" id="output" style="visibility:hidden">
|
23 |
-
<img src="/static/images/egypt_vector.png" alt="Egypt" style="display: none;>
|
24 |
-
<div class="centered"><h2>{{output}}</h2></div>
|
25 |
-
</div>
|
26 |
-
|
27 |
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
28 |
-
<script>
|
29 |
-
var text = document.getElementById("text").value
|
30 |
-
document.getElementById("output").style="visibility: visible";
|
31 |
-
$('input').on('submit', function(event) {
|
32 |
-
$.ajax({
|
33 |
-
type: 'POST',
|
34 |
-
url: "{{ url_for( 'classify' ) }}",
|
35 |
-
data: JSON.stringify({'input':text}),
|
36 |
-
contentType: "application/json",
|
37 |
-
success:function(response){
|
38 |
-
|
39 |
-
document.write(response);
|
40 |
-
document.getElementById("output").style="visibility: visible";
|
41 |
-
|
42 |
-
}
|
43 |
-
})
|
44 |
-
})
|
45 |
-
</script>
|
46 |
|
47 |
</form>
|
48 |
</div>
|
|
|
1 |
<main>
|
2 |
<section id="text-classification">
|
3 |
<head>
|
4 |
+
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename= 'CSS/style.css')}}">
|
5 |
</head>
|
6 |
<body>
|
7 |
<h2>ุชุตููู ุงูู
ูุงุทู </h2>
|
|
|
18 |
<br>
|
19 |
<input id="text" type="submit" value="ุตูููู" class="button-89">
|
20 |
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
</form>
|
23 |
</div>
|