talha2134 commited on
Commit
4467f45
·
verified ·
1 Parent(s): 2054f55

html file

Browse files
Files changed (1) hide show
  1. index.html +79 -0
index.html ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <title>English → Urdu Translator</title>
9
+
10
+ <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
11
+
12
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap" rel="stylesheet">
13
+
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div class="container">
19
+
20
+ <div class="card">
21
+
22
+ <h1>🌍 English → Urdu Translator</h1>
23
+
24
+ <p class="subtitle">
25
+ Powered by TensorFlow Encoder–Decoder LSTM
26
+ </p>
27
+
28
+ <form id="translatorForm">
29
+
30
+ <label>English Sentence</label>
31
+
32
+ <textarea
33
+ id="english"
34
+ placeholder="Enter English sentence..."
35
+ required
36
+ ></textarea>
37
+
38
+ <div class="counter">
39
+ <span id="count">0</span> Characters
40
+ </div>
41
+
42
+ <button type="submit">
43
+
44
+ Translate
45
+
46
+ </button>
47
+
48
+ </form>
49
+
50
+ <div class="loading" id="loading">
51
+ Translating...
52
+ </div>
53
+
54
+ <div class="result">
55
+
56
+ <label>Urdu Translation</label>
57
+
58
+ <div id="urdu" class="urdu-box">
59
+
60
+ Your translation will appear here...
61
+
62
+ </div>
63
+
64
+ <button id="copyBtn">
65
+
66
+ Copy Translation
67
+
68
+ </button>
69
+
70
+ </div>
71
+
72
+ </div>
73
+
74
+ </div>
75
+
76
+ <script src="{{ url_for('static', filename='app.js') }}"></script>
77
+
78
+ </body>
79
+ </html>