Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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')
|