Unable to run space locally or duplicate

I am unable to run this space locally or duplicate it despite the space running perfectly fine on the web UI.
HoLa-BRep - a Hugging Face Space by YuXingyao

I always run into the following error:

Traceback (most recent call last):
File “/home/user/HoLa-Brep/app.py”, line 7, in
from app.AppLayout import *
File “/home/user/HoLa-Brep/app/init.py”, line 1, in
from .ModelBuilder import ModelBuilder
File “/home/user/HoLa-Brep/app/ModelBuilder.py”, line 7, in
from diffusion.diffusion_model import Diffusion_condition
ModuleNotFoundError: No module named ‘diffusion’

There does not exist any file named ‘diffusion’ in the entire space. I tried downloading the docker image and still received this error. I am confused why the space runs in the UI but not locally. Any help would be appreciated greatly.

1 Like

Hi @william590y When duplicating a Space, we recommend using the same hardware as the original Space in order to avoid any issues. It looks like this Space is running on Nvidia T4 small.

We have more info on GPU upgrades here: Using GPU Spaces. Let us know if you continue running into issues on the upgraded hardware.

1 Like

Hi there Megan! Thank you so much for your prompt response.

I tried running the space again on the Nvidia T4 small and ran into the same exact error. Any advice on how to proceed would be appreciated.

1 Like

Hmm, that space seems to be in a very unusual state. Looking at the commit history, there are no signs of deletion, so it may have been Super Squash History, but I can’t find any files that seem to have been there before. I don’t think there are any matching files in the libraries installed via Dockerfile either. It may be installed as a dependency of one of the libraries. In any case, in its current state, the author’s code itself is actually running and working…:thinking:
https://huggingface.co/spaces/YuXingyao/HoLa-BRep/blob/main/diffusion/inference.py

Hi there John! Thank you for the kind reply. I’ve contacted the author and I’ve been told the default provided docker command:

docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all
registry.hf.space/yuxingyao-hola-brep:latest

executes the huggingface front end, but not the core code, which is inside of the docker container. However, I can’t seem to find any reference to diffusion inside the container.

1 Like

Same error. I wonder if the diffusion module is in Persistent Storage (under the /data directory)…?

You could try this file system explorer for Huggingface spaces to compare the dependencies, environmental variables, etc. between the two spaces.

[edit] It will show your environmental variables and everything, so worth turning the space private when using it for debugging.

1 Like