Trying to run a space locally
Hi, I’m trying to run this Space locally:HF /spaces/radames/Enhance-This-HiDiffusion-SDXLI’m on Windows 11 Pro, I have the required version of Python and my GPU is Nvidia 4090. I’m following the suggested  steps:git lfs installgit cloneEnhance This HiDiffusion SDXL - a Hugging Face Space by radamespython -m venv .env…env\Scripts\activatepip install torch torchvision torchaudio --index-urlhttps://download.pytorch.org/whl/cu121pip install -r requirements.txtpip install mediapipepip install streamlitstreamlit run app.pyThe result:You can now view your Streamlit app in your browser.Local URL: localhost:8501Network URL: 192.168.1.30:85012024-05-26 19:11:06.061 Uncaught app exceptionTraceback (most recent call last):File “C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 600, in run_scriptexec(code, module.dict)File “C:\Enhance-This-HiDiffusion-SDXL\app.py”, line 1, inimport spacesFile “C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\spaces_init.py”, line 10, infrom .zero.decorator import GPUFile “C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\spaces\zero\decorator.py”, line 21, infrom .wrappers import regular_function_wrapperFile “C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\spaces\zero\wrappers.py”, line 15, infrom multiprocessing.context import ForkProcessImportError: cannot import name ‘ForkProcess’ from ‘multiprocessing.context’ (C:\Users\lirex.pyenv\pyenv-win\versions\3.10.11\lib\multiprocessing\context.py)Any advise will be appreciated, thanks!
2024-07-04T13:32:54Z
find wrappers.py in your spaces lib installationfor me it wasF:\.conda\env\yourCondaEnvName\Lib\site-packages\spaces\zero\wrappers.pyreplaceProcess = multiprocessing.get_context('fork').ProcesswithProcess = multiprocessing.get_context('spawn').Process