Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
import tempfile # ✅ Import tempfile to create temp files
|
5 |
|
6 |
# ✅ Load the fastest model on CPU
|
7 |
-
model_name = "
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name).to("cpu") # Force CPU mode
|
10 |
|
|
|
4 |
import tempfile # ✅ Import tempfile to create temp files
|
5 |
|
6 |
# ✅ Load the fastest model on CPU
|
7 |
+
model_name = "Salesforce/codegen-350M-mono" # Fastest model for code review
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
model = AutoModelForCausalLM.from_pretrained(model_name).to("cpu") # Force CPU mode
|
10 |
|