web-ai-showcase icon indicating copy to clipboard operation
web-ai-showcase copied to clipboard

Fetch models for China AI PC Dev Kit users

Open ibelem opened this issue 8 months ago • 1 comments

The models are inaccessible from huggingface.co in China, we need to solve this issue.

  1. Please check if we can switch the domain from https://huggingface.co to https://hf-mirror.com/ for Chinese users.
  2. See if we can load https://modelscope.cn/ via fetch API.

How can we detect if the user is coming from China on the Web?

  1. The https://ipinfo.io/ need to pay for the API access
  2. The Google Maps Geocoding API requires user's permissions for accessing Geolocation API at first

@NingW101

ibelem avatar Jun 06 '24 08:06 ibelem