kamau1 commited on
Commit
86077a3
·
1 Parent(s): d20da71

Delete index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -52
index.html DELETED
@@ -1,52 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width">
6
- <title>Sema Translator</title>
7
- <link rel="stylesheet" href="style.css" />
8
- <py-script src="app.py"></py-script>
9
- </head>
10
- <body>
11
- <div class="Header">
12
- <h1>Sema Translator</h1>
13
- <p>Unlock the Power of Global Communication with Sema Translator! Seamlessly bridging language barriers. With support for over 200 languages, Sema Translator opens up a realm of possibilities for building truly global applications.</p>
14
-
15
- </div>
16
-
17
- <div class="LanguageDropdown">
18
- <h2>Select a Language:</h2>
19
- <select id="languageSelect">
20
- <!-- Add options dynamically -->
21
- </select>
22
- </div>
23
-
24
- <div class="instructions">
25
- <p>Use the following python code to access the api endpoint</p>
26
- <pre style="text-align: left;">
27
- import requests
28
-
29
- url = "{public_url}/translate/"
30
- data = {
31
- "userinput": "rũcinĩ rwega, niwokĩra wega?",
32
- "target_lang": "eng_Latn",
33
- }
34
-
35
- response = requests.post(url, json=data)
36
- result = response.json()
37
-
38
- print(result)
39
-
40
- source_language = result['source_language']
41
- print("Source Language:", source_language)
42
-
43
- translation = result['translated_text']
44
- print("Translated text:", translation)
45
- </pre>
46
- </div>
47
-
48
- <div class="footer">
49
- <h1>Created by Lewis Kamau Kiamru</h1>
50
- </div>
51
- </body>
52
- </html>