Spaces:
Runtime error
Runtime error
SingleZombie
commited on
Commit
·
02ed689
1
Parent(s):
ac0890f
update path
Browse files
app.py
CHANGED
|
@@ -62,13 +62,10 @@ huggingface_hub.hf_hub_download('PKUWilliamYang/Rerender',
|
|
| 62 |
|
| 63 |
huggingface_hub.hf_hub_download('PKUWilliamYang/Rerender',
|
| 64 |
'models/ebsynth',
|
| 65 |
-
local_dir='
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
shutil.move('src/ebsynth/deps/ebsynth/models/ebsynth', 'src/ebsynth/deps/ebsynth/bin/ebsynth')
|
| 70 |
-
|
| 71 |
-
shutil.rmtree('models')
|
| 72 |
|
| 73 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 74 |
|
|
|
|
| 62 |
|
| 63 |
huggingface_hub.hf_hub_download('PKUWilliamYang/Rerender',
|
| 64 |
'models/ebsynth',
|
| 65 |
+
local_dir='./')
|
| 66 |
+
|
| 67 |
+
os.symlink('models', 'model')
|
| 68 |
+
os.symlink('models', 'src/ebsynth/deps/ebsynth/')
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 71 |
|