lea97338 commited on
Commit
da6eaaf
·
verified ·
1 Parent(s): 1e689ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def encode_text(prompt: str):
45
  # Sauvegarde
46
  fd, path = tempfile.mkstemp(suffix=".pt")
47
  os.close(fd)
48
- torch.save(outputs.cpu(), path)
49
 
50
  return path
51
 
 
45
  # Sauvegarde
46
  fd, path = tempfile.mkstemp(suffix=".pt")
47
  os.close(fd)
48
+ torch.save(outputs, path)
49
 
50
  return path
51