Spaces:
Paused
Paused
Update flare-ui/src/app/components/chat/chat.component.ts
Browse files
flare-ui/src/app/components/chat/chat.component.ts
CHANGED
|
@@ -397,7 +397,7 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
| 397 |
|
| 398 |
// Generate TTS if enabled
|
| 399 |
if (this.useTTS && this.ttsAvailable) {
|
| 400 |
-
this.generateTTS(res.
|
| 401 |
}
|
| 402 |
},
|
| 403 |
error: (err) => {
|
|
|
|
| 397 |
|
| 398 |
// Generate TTS if enabled
|
| 399 |
if (this.useTTS && this.ttsAvailable) {
|
| 400 |
+
this.generateTTS(res.response, this.messages.length - 1);
|
| 401 |
}
|
| 402 |
},
|
| 403 |
error: (err) => {
|