enlyth / sd-webui-riffusion

Riffusion extension for AUTOMATIC1111's SD Web UI
MIT License
195 stars 23 forks source link

Local variable 'audio' referenced before assignment #10

Open kenster4000 opened 1 year ago

kenster4000 commented 1 year ago

Steps to reproduce:

Traceback (most recent call last): File "e:__workspace\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict output = await app.blocks.process_api( File "e:__workspace\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 980, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "e:__workspace\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 891, in preprocess_data processed_input.append(block.preprocess(inputs[i])) File "e:__workspace\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 1845, in preprocess sample_rate, data = processing_utils.audio_from_file( File "e:__workspace\stable-diffusion-webui\venv\lib\site-packages\gradio\processing_utils.py", line 204, in audio_from_file data = np.array(audio.get_array_of_samples()) UnboundLocalError: local variable 'audio' referenced before assignment

pyr0ball commented 1 year ago

Confirmed the same behavior from my instance

plusmaa commented 1 year ago

Same for me.