Spaces:
Sleeping
Sleeping
clean warning, clean code
Browse files- src/lesson.rs +1 -0
- static/index.html +1 -1
src/lesson.rs
CHANGED
@@ -272,6 +272,7 @@ impl LangLesson {
|
|
272 |
tokio::spawn(async move {
|
273 |
let fut = async {
|
274 |
while let Ok(evt) = transcript_rx.recv().await {
|
|
|
275 |
let output = translate_client
|
276 |
.translate_text()
|
277 |
.text(evt.transcript)
|
|
|
272 |
tokio::spawn(async move {
|
273 |
let fut = async {
|
274 |
while let Ok(evt) = transcript_rx.recv().await {
|
275 |
+
if !evt.is_final { continue }
|
276 |
let output = translate_client
|
277 |
.translate_text()
|
278 |
.text(evt.transcript)
|
static/index.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Vite + React</title>
|
8 |
-
<script type="module" crossorigin src="/assets/index-
|
9 |
<link rel="stylesheet" href="/assets/index-983f9492.css">
|
10 |
</head>
|
11 |
<body>
|
|
|
5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Vite + React</title>
|
8 |
+
<script type="module" crossorigin src="/assets/index-1bd6d507.js"></script>
|
9 |
<link rel="stylesheet" href="/assets/index-983f9492.css">
|
10 |
</head>
|
11 |
<body>
|