nyanko7 commited on
Commit
6614219
1 Parent(s): 6477781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 loaded_learned_embed else loaded_learned_embed
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: