rsxdalv / tts-generation-webui

TTS Generation Web UI (Bark, MusicGen + AudioGen, Tortoise, RVC, Vocos, Demucs, SeamlessM4T, MAGNet, StyleTTS2, MMS, Stable Audio, Mars5, F5-TTS, ParlerTTS)
https://rsxdalv.github.io/tts-generation-webui/
MIT License
1.84k stars 202 forks source link

Type error: Property 'target' does not exist on type '{ href: string; text: string; }'. React UI #243

Closed ozymoz closed 10 months ago

ozymoz commented 10 months ago

Error after typing npm run build. What kind of editing should be done in the editor?

React UI Install nodejs (if not already installed with conda) Install react dependencies: npm install Build react: npm run build Run react: npm start Also run the python server: python server.py or with start_(platform) script

Ekran görüntüsü 2024-01-11 150102

rsxdalv commented 10 months ago

The latest version does not have this error. https://github.com/rsxdalv/tts-generation-webui/blob/main/react-ui/src/components/Header.tsx#L129

rsxdalv commented 10 months ago

I found some other issues with the build that I missed before. There's a new update that fixes those errors and warnings: https://github.com/rsxdalv/tts-generation-webui/pull/244

ozymoz commented 10 months ago

I downloaded new updates with Git. React UI was installed and builded. Gradio is working but React UI can't communicate with Gradio.

Edit

I just did a clean install. After installing React UI, when I run start_windows, the following "api error" errors started to appear. I think these are the problems in React UI's communication with gradio. There were no api error errors in start_windows before installing React UI.

start_windows

Loading extensions: Loaded extension: callback_save_generation_ffmpeg Loaded extension: callback_save_generation_musicgen_ffmpeg Loaded extension: empty_extension Loaded 2 callback_save_generation extensions. Loaded 1 callback_save_generation_musicgen extensions. 2024-01-12 04:13:04 | WARNING | xformers | A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton' 2024-01-12 04:13:04 | WARNING | xformers | Triton is not available, some optimizations will not be enabled. This is just a warning: No module named 'triton' C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name open_folder already exists, using open_folder_1 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_to_voices already exists, using save_to_voices_1 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name delete_generation already exists, using delete_generation_1 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name open_folder already exists, using open_folder_2 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_to_voices already exists, using save_to_voices_2 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name delete_generation already exists, using delete_generation_2 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_environment_variables_bark already exists, using save_environment_variables_bark_1 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_environment_variables_bark already exists, using save_environment_variables_bark_2 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_1 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_2 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_3 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_4 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_5 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_6 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\blocks.py:261: UserWarning: api_name save_config_bark already exists, using save_config_bark_7 warnings.warn(f"api_name {api_name} already exists, using {api_name_}") Starting Gradio server... Gradio interface options: inline: False inbrowser: True share: False debug: False enable_queue: True max_threads: 40 auth: None auth_message: None prevent_thread_lock: False show_error: False server_name: 0.0.0.0 server_port: None show_tips: False height: 500 width: 100% favicon_path: None ssl_keyfile: None ssl_certfile: None ssl_keyfile_password: None ssl_verify: True quiet: True show_api: True file_directories: None _frontend: True Running on local URL: http://0.0.0.0:7860 Generating: ''' f1 car ''' Parameters: text : f1 car melody : None model : facebook/audiogen-medium duration : 5 topk : 250 topp : 0 temperature : 1 cfg_coef : 3 seed : 3896331569 use_multi_band_diffusion : False Generated in 7.914 seconds Saving generation to outputs\2024-01-12_04-13-36__musicgen__f1_car\2024-01-12_04-13-36__musicgen__f1_car.ogg Saved generation to outputs\2024-01-12_04-13-36__musicgen__f1_car\2024-01-12_04-13-36__musicgen__f1_car.ogg C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\installer_files\env\lib\site-packages\gradio\processing_utils.py:171: UserWarning: Trying to convert audio automatically from float32 to 16-bit int format. warnings.warn(warning.format(data.dtype))

ReactUI

` C:\Users\xxxxxx\Desktop\one-click-installers-tts-6.0_2\tts-generation-webui\react-ui>npm start

tts-generation-webui-react@0.1.0 start next start

▲ Next.js 13.5.6