Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
TencentARC
/
ToonComposer
like
143
Running
on
Zero
App
Files
Files
Community
3
Fetching metadata from the HF Docker repository...
set hf mirror
#3
by
LloydQ
- opened
6 days ago
base:
refs/heads/main
←
from:
refs/pr/3
Discussion
Files changed
+3
-0
Files changed (1)
hide
show
app.py
+3
-0
app.py
CHANGED
Viewed
@@ -1,3 +1,6 @@
1
import util.env_resolver
2
import spaces
3
import torch
1
+
import os
2
+
# 设置HuggingFace镜像站
3
+
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
4
import util.env_resolver
5
import spaces
6
import torch