narugo1992 commited on
Commit
dbac4e1
1 Parent(s): 607013b

dev(narugo): configure hf_hub_download

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,7 +8,8 @@ import pandas as pd
8
  from gchar.games.dispatch.access import get_character
9
  from gchar.resources.pixiv import get_pixiv_keywords, get_pixiv_posts
10
  from gchar.resources.sites import list_available_sites, get_site_tag
11
- from huggingface_hub import hf_hub_url
 
12
  from pycivitai import civitai_find_online
13
  from pycivitai.client import ModelNotFound
14
 
@@ -17,6 +18,7 @@ from civitai import try_find_title
17
  from huggingface import get_hf_fs
18
 
19
  hf_fs = get_hf_fs()
 
20
 
21
 
22
  def query(chr_name):
 
8
  from gchar.games.dispatch.access import get_character
9
  from gchar.resources.pixiv import get_pixiv_keywords, get_pixiv_posts
10
  from gchar.resources.sites import list_available_sites, get_site_tag
11
+ from gchar.utils import get_requests_session
12
+ from huggingface_hub import hf_hub_url, configure_http_backend
13
  from pycivitai import civitai_find_online
14
  from pycivitai.client import ModelNotFound
15
 
 
18
  from huggingface import get_hf_fs
19
 
20
  hf_fs = get_hf_fs()
21
+ configure_http_backend(get_requests_session)
22
 
23
 
24
  def query(chr_name):