Spaces:
Runtime error
Runtime error
Commit
•
7798838
1
Parent(s):
167f83f
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,9 @@ print("Token loaded")
|
|
5 |
import transformers
|
6 |
import torch
|
7 |
|
|
|
|
|
|
|
8 |
model_id = "meta-llama/Meta-Llama-3-8B-Instruct/tree/main"
|
9 |
|
10 |
pipeline = transformers.pipeline(
|
|
|
5 |
import transformers
|
6 |
import torch
|
7 |
|
8 |
+
# Set the device to CPU
|
9 |
+
device = torch.device('cpu')
|
10 |
+
|
11 |
model_id = "meta-llama/Meta-Llama-3-8B-Instruct/tree/main"
|
12 |
|
13 |
pipeline = transformers.pipeline(
|