Final commit

parent 39585be5
......@@ -42,6 +42,7 @@ const TextTranslate = () => {
const [showUnityWebGL, setShowUnityWebGL] = useState(false);
const [loading, setLoading] = useState(false);
const [showAvatarImage, setShowAvatarImage] = useState(true);
const FormSchema = Yup.object().shape({
userInputText: Yup.string()
......@@ -85,7 +86,7 @@ const TextTranslate = () => {
console.error("Request failed with status code:", response.status);
}
resetForm()
// resetForm()
setSubmitting(false);
} catch (error) {
console.error(error);
......
......@@ -173,16 +173,16 @@ const VideoTranslate = () => {
<Button
variant="contained"
style={{
width: '180px',
height: '50px',
fontSize: '20px',
width: '150px',
height: '40px',
fontSize: '18px',
}}
sx={{
mb: 3
}}
disabled={loading}
onClick={uploadVideo}
endIcon={<TranslationOutlined />}
startIcon={<TranslationOutlined />}
>
Translate
</Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment