FoodDesert commited on
Commit
26c6087
1 Parent(s): c44b459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def convert_embedding(sd15_embedding):
10
 
11
  # Save uploaded file to disk to be processed
12
  with open(input_path, "wb") as f:
13
- f.write(sd15_embedding.read())
14
 
15
  # Your existing conversion logic
16
  sd15_embedding = torch.load(input_path, map_location=torch.device('cpu'))
 
10
 
11
  # Save uploaded file to disk to be processed
12
  with open(input_path, "wb") as f:
13
+ f.write(sd15_embedding)
14
 
15
  # Your existing conversion logic
16
  sd15_embedding = torch.load(input_path, map_location=torch.device('cpu'))