YALCINKAYA commited on
Commit
7fa6395
·
1 Parent(s): ceabcf0
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ CORS(app, resources={r"api/predict/*": {"origins": ["http://localhost:3000", "ht
15
  # Global variables for model and tokenizer
16
  model = None
17
  tokenizer = None
18
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu") # Use GPU if available
19
 
20
  def get_model_and_tokenizer(model_id):
21
  global model, tokenizer
 
15
  # Global variables for model and tokenizer
16
  model = None
17
  tokenizer = None
18
+ device = torch.device("cpu") # Explicitly use CPU
19
 
20
  def get_model_and_tokenizer(model_id):
21
  global model, tokenizer