DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

gradio not work when no internet connection

Open mychina75 opened this issue 2 years ago • 2 comments

I can not load the web page, because gradio can not work fine when no internet connection. any one can help?

mychina75 avatar May 30 '23 09:05 mychina75

I can not load the web page, because gradio can not work fine when no internet connection. any one can help?

I met this problem on windows. Did you solved it? I can run it fine on linux

deepthman avatar Jun 01 '23 13:06 deepthman

you should add to env variables HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 DIFFUSERS_OFFLINE=1 \

for conda just type conda env config vars set HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 DIFFUSERS_OFFLINE=1 \

4eJIoBek1 avatar Jun 01 '23 16:06 4eJIoBek1