-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnboundLocalError: local variable 'model' referenced before assignment ? #138
Comments
The same thing, but in Google Colab [INFO] >> Cache flushed |
Duplicate of #139 |
[INFO] >> Working in: cuda
Running on local URL: http://127.0.0.1:7860
To create a public link, set
share=True
inlaunch()
.IMPORTANT: You are using gradio version 4.19.2, however version 4.44.1 is available, please upgrade.
[INFO] >> Content in 'outputs' removed.
[WARNING] >> Make sure to select a 'TTS Speaker' suitable for the translation language to avoid errors with the TTS.
[INFO] >> Cache flushed
[INFO] >> Processing video...
[INFO] >> Video codec: h264
[INFO] >> Process video...
[INFO] >> Process audio...
[INFO] >> Transcribing...
Traceback (most recent call last):
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/gradio/route_utils.py", line 235, in call_process_api
output = await app.get_blocks().process_api(
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/gradio/blocks.py", line 1627, in process_api
result = await self.call_function(
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/gradio/blocks.py", line 1173, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
return await future
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
result = context.run(func, *args)
File "/home/pinguin/anaconda3/envs/sonitr/lib/python3.10/site-packages/gradio/utils.py", line 690, in wrapper
response = f(*args, **kwargs)
File "/home/pinguin/dev/SoniTranslate/app_rvc.py", line 365, in batch_multilingual_media_conversion
output_file = self.multilingual_media_conversion(
File "/home/pinguin/dev/SoniTranslate/app_rvc.py", line 708, in multilingual_media_conversion
audio, self.result = transcribe_speech(
File "/home/pinguin/dev/SoniTranslate/soni_translate/speech_segmentation.py", line 249, in transcribe_speech
result = model.transcribe(
UnboundLocalError: local variable 'model' referenced before assignment
The text was updated successfully, but these errors were encountered: