chaoxu commited on
Commit
dee50e0
·
1 Parent(s): bb94c78

install fix

Browse files
Files changed (1) hide show
  1. launch.py +3 -4
launch.py CHANGED
@@ -24,10 +24,9 @@ if not is_local_run:
24
  zip_ref.extractall(os.getcwd())
25
 
26
 
27
- def install(package):
28
- subprocess.check_call([sys.executable, "-m", "pip", "install", package])
29
- install(f"{code_dir}/gradio_model3dcolor-0.0.1-py3-none-any.whl")
30
- install(f"{code_dir}/gradio_model3dnormal-0.0.1-py3-none-any.whl")
31
  from gradio_model3dcolor import Model3DColor
32
  from gradio_model3dnormal import Model3DNormal
33
 
 
24
  zip_ref.extractall(os.getcwd())
25
 
26
 
27
+ os.system(f"pip install --force-reinstall {code_dir}/gradio_model3dcolor-0.0.1-py3-none-any.whl")
28
+ os.system(f"pip install --force-reinstall {code_dir}/gradio_model3dnormal-0.0.1-py3-none-any.whl")
29
+
 
30
  from gradio_model3dcolor import Model3DColor
31
  from gradio_model3dnormal import Model3DNormal
32