Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,10 @@ class AnimateController:
|
|
64 |
# gate_dict_path = "ckpts/landscape.pt"
|
65 |
# self.pnp.set_audio_projector(gate_dict_path, audio_projector_path)
|
66 |
|
67 |
-
|
68 |
-
#
|
|
|
|
|
69 |
|
70 |
|
71 |
@spaces.GPU
|
@@ -96,6 +98,7 @@ class AnimateController:
|
|
96 |
pnp_f_t=0.8, pnp_attn_t=0.8,):
|
97 |
|
98 |
if self.audio_projector_path is None:
|
|
|
99 |
self.audio_projector_path = "ckpts/audio_projector_landscape.pth"
|
100 |
self.adapter_ckpt_path = "ckpts/landscape.pt"
|
101 |
|
@@ -115,8 +118,7 @@ class AnimateController:
|
|
115 |
)
|
116 |
|
117 |
return image
|
118 |
-
|
119 |
-
@spaces.GPU
|
120 |
def update_audio_model(self, audio_model_update):
|
121 |
|
122 |
print(f"changing ckpts audio model {audio_model_update}")
|
|
|
64 |
# gate_dict_path = "ckpts/landscape.pt"
|
65 |
# self.pnp.set_audio_projector(gate_dict_path, audio_projector_path)
|
66 |
|
67 |
+
self.audio_projector_path = None
|
68 |
+
#"ckpts/audio_projector_landscape.pth"
|
69 |
+
self.adapter_ckpt_path = None
|
70 |
+
#"ckpts/landscape.pt"
|
71 |
|
72 |
|
73 |
@spaces.GPU
|
|
|
98 |
pnp_f_t=0.8, pnp_attn_t=0.8,):
|
99 |
|
100 |
if self.audio_projector_path is None:
|
101 |
+
print("audio projectore path is nonee")
|
102 |
self.audio_projector_path = "ckpts/audio_projector_landscape.pth"
|
103 |
self.adapter_ckpt_path = "ckpts/landscape.pt"
|
104 |
|
|
|
118 |
)
|
119 |
|
120 |
return image
|
121 |
+
|
|
|
122 |
def update_audio_model(self, audio_model_update):
|
123 |
|
124 |
print(f"changing ckpts audio model {audio_model_update}")
|