-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio_english_learning.html
345 lines (309 loc) · 13.1 KB
/
portfolio_english_learning.html
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE HTML>
<!--
Strata by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Strata by HTML5 UP</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="is-preload">
<!-- Header -->
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Chatbot Introduction -->
<section>
<a href="#" class="image avatar"><img src="images/user.png" alt="Chatbot Avatar" /></a>
<h1><strong>I am a chatbot</strong></h1>
<p>Built based on ChainLit (ChatGPT-like UIs).<br />
Connects with ChatGpt (LLM) with Elevenlabs (Text-To-Speech).<br />
Currently, it is in the MVP phase, making baby steps each time.</p>
</section>
<!-- Staff Introduction -->
<section>
<h1>Let's introduce our staff team</h1>
<div class="staff-member">
<a href="#" class="image avatar"><img src="images/female_teacher.png" alt="Female Teacher" /></a>
<p>Bella</p>
</div>
<div class="staff-member">
<a href="#" class="image avatar"><img src="images/male_teacher.png" alt="Male Teacher" /></a>
<p>Josh</p>
</div>
</section>
</div>
</header>
<style>
#nav {
position: fixed; /* Keeps it in place during scrolling */
top: 10px; /* Adjust as needed for positioning from the top */
right: 10px; /* Adjust as needed for positioning from the right */
background-color: #fff; /* Optional: give it a background for better readability */
padding: 10px;
border-radius: 5px; /* Optional: rounded corners for aesthetics */
z-index: 1000; /* Ensure the navigation stays on top of other content */
}
#nav ul {
list-style-type: none; /* Remove default bullet points */
margin: 0;
padding: 0;
display: flex; /* Flex layout to organize items in one line */
justify-content: space-between; /* Distribute space between items */
}
#nav ul a {
display: inline-block; /* Display the links inline */
margin-right: 25px; /* Add space between the links */
text-decoration: none; /* Optional: remove the default underline from links */
color: #333; /* Optional: set a default color for the links */
}
#nav ul a:last-child {
margin-right: 0; /* Removes the right margin from the last link */
}
</style>
<!-- Main -->
<div id="main">
<nav id="nav">
<ul>
<a href="./deployment.html">Deployment</a>
<a href="./resume.html">Resume</a>
<a href="./index.html">Main Page</a>
</ul>
</nav>
<!-- One -->
<section id="one">
<!-- English Learning ChatBot Intro. -->
<header class="major">
<h2>Introduction to the English Learning ChatBot</h2>
</header>
<section>
<p>Designed predominantly for non-native speakers, our platform is currently tailored for the Chinese demographic.</p>
<h3>Key Features:</h3>
<ul>
<li>Interactive ChatBot Interface</li>
<li>Comprehensive Evaluation of English Vocabulary, Idioms, and Grammar by pre-defined test</li>
<li>Real-time Voice and Gender Customization for the AI Tutor (With TTS playback capability)</li>
<li>"Read Out Loud" Feature for Pronunciation Assessment – Emphasizing the importance of vocal practice</li>
<li>Enhanced with logic thinking and real-life topics, our Scenario Generation covers 10+ main areas, each with 10+ related sub-topics. This design fosters an immersive learning experience, enabling users to master English in practical, real-world contexts.</li>
<li>Creativity!More coming!</li>
</ul>
</section>
</section>
<!-- Two -->
<section id="two">
<h2>Deep Dive</h2>
<div class="row">
<style>
.compact-article {
width: 80%; /* Increase this percentage if you have more space available */
font-size: 0.9em; /* Adjust the font size */
line-height: 1.2em; /* Adjust the line height */
}
h3, h4 {
display: block;
clear: both;
}
</style>
<div style="display: block; clear: both; margin-bottom: 20px;">
<h3>What's the fundamental problems I want to solve?</h3>
<p>Empower your self-taught journey by seizing fragmented moments to delve into whatever you wish to learn, regardless of place or time!</p>
<h4>WorkFlow Explainations</h4>
<img src="images/chainlitflow.png" alt="ChainLit Flow" />
</div>
<!-- ChainLit -->
<article>
<h4><a href="https://docs.chainlit.io/overview" target="_blank">ChainLit</a></h4>
<p>Chainlit is an open-source Python package that makes it incredibly fast to build and share LLM apps. Integrate the Chainlit API in your existing code to spawn a ChatGPT-like interface in minutes!Think of it like Streamlit, but specifically for assistants/chatbots!</p>
<p>Simple demonstation on how to send external services to ChainLit UI Interface</p>
</article>
<h5>Sample Python Code: Connect ElevenLabs API to utilize TTS Service</h5>
</div>
<style>
.code-container {
background-color: black;
padding: 10px;
border-radius: 5px;
color: white; /* To make the text visible against the black background */
white-space: pre-line; /* To ensure the code inside preserves its formatting */
}
.keyword {
color: #C678DD;
}
.function {
color: #61AEEE;
}
.string {
color: #98C379;
}
.comment {
color: #7C7C7C;
}
.var {
color: #E06C75;
}
</style>
</head>
<body>
<div class="code-container">
<span class="keyword">from</span> elevenlabs <span class="keyword">import</span> set_api_key<span class="var">, </span>generate<span class="var">, </span>save
audio <span class="var">= </span><span class="function">generate</span>(
text<span class="var">=</span><span class="string">response_content</span><span class="var">, </span>
voice<span class="var">=</span>voice<span class="var">, </span>
model<span class="var">=</span><span class="string">"eleven_monolingual_v1"</span>
)
<span class="function">save</span>(audio, filename<span class="var">=</span>filepath)
elements <span class="var">= </span>[<span class="var">cl.Audio</span>(name<span class="var">=</span><span class="string">"audio_sample.mp3"</span>, path<span class="var">=</span><span class="string">"./audio_sample.mp3"</span>, display<span class="var">=</span><span class="string">"inline"</span>)]
<span class="keyword">await</span> <span class="var">cl.Message</span>(content<span class="var">=</span><span class="string">"Here is the audio version:"</span>, elements<span class="var">=</span>elements).<span class="function">send</span>()
</div>
</body>
<p></p>
<h5>Demo</h5>
<video width="320" height="240" controls>
<source src="demo/voice_demo.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<!-- ChatGPT -->
<article>
<p></p>
<h4><a href="https://openai.com/blog/chatgpt" target="_blank">ChatGPT</a> (Names already out there)</h4>
<p>ChatGPT: get instant answers, find creative inspiration, and learn something new.</p>
<p>ChatGPT was trained on large collections of text data, such as books, articles, and web pages. English learning will be a piece of cake </p>
<h4>WorkFlow Explainations</h4>
<img src="images/chatgptflow.png" alt="ChainLit Flow" />
<p></p>
<h5>Sample Prompt Engineering for given scenario</h5>
</article>
<!DOCTYPE html>
<style>
.code-container {
background-color: black;
padding: 10px;
border-radius: 5px;
color: white; /* To make the text visible against the black background */
white-space: pre-line; /* To ensure the code inside preserves its formatting */
}
.keyword {
color: #C678DD;
}
.function {
color: #61AEEE;
}
.string {
color: #98C379;
}
.comment {
color: #84c4b7;
}
.var {
color: #E06C75;
}
</style>
<body>
<div class="code-container">
<span class="var">"date_night":</span>
<span class="comment">("Please generate a role for our conversation. Your options include a nervous first-dater looking for,</span>
<span class="comment">"conversation starters, a long-term partner planning a surprise date night, or someone discussing,</span>
<span class="comment">"their interests and hobbies over dinner. Depending on the role you select, our conversation will dive</span>
<span class="comment">"into getting to know each other, discussing shared interests, or planning the perfect evening </span>
<span class="comment">"together. Engage in the role and see where the conversation leads, but ensure to limit it within 200 tokens.")</span>
</div>
</body>
</html>
<p></p>
<p>Note:For simplicity, I've turned off Text-To-Speech, user audio input, and machine translation for non-English entries(Feature in progress).</p>
<h5>Demo-Date prepartion</h5>
<video width="320" height="240" controls>
<source src="demo/role_play.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<p></p>
<h5>Demo-Date Simulation</h5>
<video width="320" height="240" controls>
<source src="demo/role_play_demo.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<article>Still tons of rooms need improvement </article>
<p></p>
<article>
<h4><a href="https://elevenlabs.io/" target="_blank">Elevenlabs</a></h4>
<p>Generate lifelike spoken audio with AI tools.</p>
</article>
</section>
<section id="three">
<style>
.actions {
display: flex;
justify-content: center;
gap: 1rem;
}
.button {
padding: 0.5rem 1rem;
border: none;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s ease;
}
.primary {
background-color: #007BFF;
color: white;
}
.primary:hover {
background-color: #0056b3;
}
.special {
background-color: #6c757d;
color: white;
}
.special:hover {
background-color: #494f54;
}
</style>
<article>
<h4>Deployment <img src="images/gcp-logo.png" alt="GCP Logo" style="vertical-align: middle; width: 120px;"></h4>
<p>Currently serving on <a href="https://cloud.google.com/" target="_blank">Google Cloud Platform</a></p>
<ul class="actions">
<li><a href="deployment.html" class="button primary">Learn More</a></li>
<li><a href="index.html" class="button primary">Main Page</a></li>
</ul>
<ul>
<li>
Tencent Cloud <img src="images/tencent-cloud.png" alt="Tencent Cloud Logo" style="vertical-align: middle; width: 120px;">
</li>
<li>
Alibaba Cloud Service <img src="images/Alibaba-cloud.png" alt="Alibaba Cloud Logo" style="vertical-align: middle; width: 120px;">
</li>
<li>
Microsoft Cloud Service <img src="images/Microsoft-Cloud.png" alt="Microsoft Cloud Logo" style="vertical-align: middle; width: 120px;">
</li>
</ul>
<p>Considering these services is essential if my primary target audience is Chinese users.</p>
</article>
</section>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<ul class="icons">
<li><a href="#" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon brands fa-github"><span class="label">Github</span></a></li>
<li><a href="#" class="icon brands fa-dribbble"><span class="label">Dribbble</span></a></li>
<li><a href="#" class="icon solid fa-envelope"><span class="label">Email</span></a></li>
</ul>
<ul class="copyright">
<li>© Untitled</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</footer>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.poptrox.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>