babysor / babysor/MockingBird

mac m1

Open
#906 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
36.9k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

image
TypeError: resample() takes 1 positional argument but 3 were given
Traceback:
File "/Users/richard/miniconda3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/private/var/folders/6d/69zsy_g132gcld2sxqz7ks6w0000gn/T/tmpllqqorti.py", line 13, in
render_streamlit_ui()
File "/Users/richard/MockingBird-main/control/mkgui/base/ui/streamlit_ui.py", line 909, in render_streamlit_ui
session_state.output_data = opyrator(input=input_data_obj)
File "/Users/richard/MockingBird-main/control/mkgui/base/core.py", line 203, in __call__
return self.function(input_obj, **kwargs)
File "/Users/richard/MockingBird-main/control/mkgui/app.py", line 125, in synthesize
encoder_wav = encoder.preprocess_wav(wav, sample_rate)
File "/Users/richard/MockingBird-main/models/encoder/audio.py", line 42, in preprocess_wav
wav = librosa.resample(wav, source_sr, sampling_rate)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at models/encoder/audio.py line 42, where preprocess_wav calls librosa.resample, and trace the call from control/mkgui/app.py and control/mkgui/base/ui/streamlit_ui.py. Reproduce the synthesis flow on macOS with an M1, then verify that preprocessing and the Streamlit interface complete without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, streamlit
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.