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