Upto12forenglish commited on
Commit
7798838
1 Parent(s): 167f83f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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(