Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -392,7 +392,8 @@ def ask(symbol, weeks_before, withbasic):
|
|
392 |
# print(info)
|
393 |
|
394 |
inputs = tokenizer(pt, return_tensors='pt')
|
395 |
-
print(model.device('cuda:0' if torch.cuda.is_available() else 'cpu'))
|
|
|
396 |
inputs = {key: value.to(model.device) for key, value in inputs.items()}
|
397 |
#inputs = {key: value.to('cuda:0') for key, value in inputs.items()}
|
398 |
print("Inputs loaded onto devices.")
|
|
|
392 |
# print(info)
|
393 |
|
394 |
inputs = tokenizer(pt, return_tensors='pt')
|
395 |
+
#print(model.device('cuda:0' if torch.cuda.is_available() else 'cpu'))
|
396 |
+
print(model.device)
|
397 |
inputs = {key: value.to(model.device) for key, value in inputs.items()}
|
398 |
#inputs = {key: value.to('cuda:0') for key, value in inputs.items()}
|
399 |
print("Inputs loaded onto devices.")
|