ayushraj2349-2 commited on
Commit
2e73b5b
·
verified ·
1 Parent(s): 0040626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
  # ✅ Load the fastest model for code review
6
  model_name = "EleutherAI/pythia-70m" # Smallest & fastest alternative
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
- model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16).to("cuda")
9
 
10
  # ✅ Function to analyze Python code
11
  def review_code(code_snippet):
 
5
  # ✅ Load the fastest model for code review
6
  model_name = "EleutherAI/pythia-70m" # Smallest & fastest alternative
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
+ model = AutoModelForCausalLM.from_pretrained(model_name).to("cpu")
9
 
10
  # ✅ Function to analyze Python code
11
  def review_code(code_snippet):