Omnibus commited on
Commit
589645a
·
verified ·
1 Parent(s): 8a36771

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,9 +18,9 @@ def load_bin(model_name,file_name):
18
  print(r.content)
19
  print("#######")
20
  print(dir(r))
21
- #result=torch.frombuffer(r,dtype=torch.get_default_dtype())
22
  #result = torch.frombuffer(io.BytesIO(),dtype=torch.get_default_dtype())
23
- result = torch.from_numpy(r.content)
24
  return result
25
  #with open()
26
  #file = open(f'{name}/{f_name}','wb')
 
18
  print(r.content)
19
  print("#######")
20
  print(dir(r))
21
+ result=torch.frombuffer(r.content,dtype=torch.get_default_dtype())
22
  #result = torch.frombuffer(io.BytesIO(),dtype=torch.get_default_dtype())
23
+ #result = torch.from_numpy(r.content)
24
  return result
25
  #with open()
26
  #file = open(f'{name}/{f_name}','wb')