Vo Minh Vu commited on
Commit
878047f
·
1 Parent(s): 3ff9204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -25,7 +25,10 @@ from src.utils.infer_util import remove_background, resize_foreground, images_to
25
  import tempfile
26
  from functools import partial
27
 
28
- from huggingface_hub import hf_hub_download
 
 
 
29
 
30
  import gradio as gr
31
 
 
25
  import tempfile
26
  from functools import partial
27
 
28
+ import huggingface_hub
29
+
30
+ # alias the old name onto the new hf_hub_download
31
+ huggingface_hub.cached_download = huggingface_hub.hf_hub_download
32
 
33
  import gradio as gr
34