Spaces:
Runtime error
Runtime error
File size: 2,954 Bytes
58d4ef5 |
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 |
<!DOCTYPE html>
<html dir="rtl" lang="he">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>讙讬诇讜讬 驻住讜拽讬 讛转谞"讱 讘讗诪爪注讜转 AI</title>
<style>
body {
font-family: 'Tahoma', sans-serif;
background-color: #f9f9f9;
color: #333;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
overflow: hidden;
}
.container {
width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 15px;
text-align: center;
box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
}
.fixed-input {
width: 90%;
padding: 10px;
margin-bottom: 15px;
border: none;
border-radius: 8px;
background-color: #f2f2f2;
color: #333;
resize: none;
}
input[type="submit"] {
width: 90%;
padding: 10px;
border: none;
border-radius: 8px;
background-color: #5d8d77;
color: white;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
input[type="submit"]:hover {
background-color: #507b66;
}
h1 {
color: #5d8d77;
margin-bottom: 5px;
}
h2 {
color: #777;
margin-top: 20px;
}
.result {
border-top: 1px solid #ddd;
padding-top: 20px;
margin-top: 20px;
transition: all 0.5s ease-in-out;
}
</style>
<script>
function revealResults() {
var result = document.querySelector('.result');
result.style.opacity = 1;
result.style.marginTop = '20px';
}
</script>
</head>
<body>
<div class="container">
<h1>讙讬诇讜讬 驻住讜拽讬 讛转谞"讱 讘讗诪爪注讜转 AI</h1>
<p>讛拽诇讬讚讜 讗转 讛讟拽住讟 砖转专爪讜, 讜讙诇讜 讛讗诐 讛讜讗 讗讻谉 诪讜驻讬注 讘转谞"讱 讘讗诪爪注讜转 拽住诐 讛讘讬谞讛 讛诪诇讗讻讜转讬转</p>
<form method="POST" action="/" onsubmit="revealResults()">
<textarea class="fixed-input" name="new_text" rows="4" cols="50" placeholder="讛拽诇讬讚讜 讗转 讛讟拽住讟 讻讗谉..."></textarea><br>
<input type="submit" value="讛驻注讬诇讜 讗转 讛拽住诐">
</form>
<div class="result">
{% if prediction %}
<h2>讛住讜讚讜转 讛转谞"讻讬讬诐 谞讞砖驻讬诐</h2>
<p>讛讟拽住讟: {{ new_text }}</p>
<p>讝讜讛讛 讻...: {{ prediction }}</p>
<p>爪讬讜谉 讜讚讗讜转: {{ confidence_score }}</p>
{% endif %}
</div>
</div>
</body>
</html>
|