Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ def inference(
|
|
242 |
loaded_learned_embeds = torch.load(file, map_location="cpu")
|
243 |
else:
|
244 |
loaded_learned_embeds = load_file(file, device="cpu")
|
245 |
-
loaded_learned_embeds = loaded_learned_embeds["string_to_param"]["*"] if "string_to_param" in
|
246 |
ti_embs[name] = loaded_learned_embeds
|
247 |
|
248 |
if len(ti_embs) > 0:
|
|
|
242 |
loaded_learned_embeds = torch.load(file, map_location="cpu")
|
243 |
else:
|
244 |
loaded_learned_embeds = load_file(file, device="cpu")
|
245 |
+
loaded_learned_embeds = loaded_learned_embeds["string_to_param"]["*"] if "string_to_param" in loaded_learned_embeds else loaded_learned_embeds
|
246 |
ti_embs[name] = loaded_learned_embeds
|
247 |
|
248 |
if len(ti_embs) > 0:
|