error
This commit is contained in:
parent
007706c113
commit
490a3c5c1b
@ -74,6 +74,7 @@ export default function Home() {
|
||||
onChange(checkbox.checked);
|
||||
}
|
||||
const send = (inputText: string) => {
|
||||
setResponse(inputText)
|
||||
if (!inputText) return;
|
||||
console.log(inputText)
|
||||
let data = JSON.stringify({
|
||||
@ -108,7 +109,7 @@ export default function Home() {
|
||||
},
|
||||
data: data
|
||||
};
|
||||
|
||||
try {
|
||||
axios(config)
|
||||
.then((response) => {
|
||||
console.log(`response`, response);
|
||||
@ -120,6 +121,11 @@ export default function Home() {
|
||||
setResponse("error");
|
||||
console.log(error);
|
||||
});
|
||||
} catch (error) {
|
||||
setResponse("error");
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const { start, end, text, isListening, error } = useVoice2Txt({
|
||||
|
Loading…
x
Reference in New Issue
Block a user