HVision-NKU / StoryDiffusion

Accepted as [NeurIPS 2024] Spotlight Presentation Paper
Apache License 2.0
5.99k stars 600 forks source link

can't run the gradio_app_sdxl_specific_id_low_vram.py #143

Open youkerWANG opened 4 months ago

youkerWANG commented 4 months ago

i run this in the docker env ,this is the issues feed back Traceback (most recent call last): File "/home/StoryDiffusion/gradio_app_sdxl_specific_id_low_vram.py", line 2, in import gradio as gr File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio/init.py", line 3, in import gradio._simple_templates File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in from .simpledropdown import SimpleDropdown File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in from gradio.components.base import FormComponent File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio/components/init.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 7, in import gradio_client.utils as client_utils File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio_client/init.py", line 1, in from gradio_client.client import Client File "/root/miniconda3/envs/story/lib/python3.10/site-packages/gradio_client/client.py", line 29, in from huggingface_hub import CommitOperationAdd, SpaceHardware, SpaceStage ImportError: cannot import name 'CommitOperationAdd' from 'huggingface_hub' (/root/miniconda3/envs/story/lib/python3.10/site-packages/huggingface_hub/init.py)

ArianaStar commented 3 months ago

Simply run pip uninstall huggingface-hub Then run pip install huggingface-hub

In short huggingface-hub changes frequently, yet can be updated without breaking the process.