Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import spaces
|
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
print(f"Using device: {device}")
|
10 |
|
11 |
-
# Load model and tokenizer
|
12 |
MODEL_PATH = "sagar007/phi2_25k"
|
13 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
|
14 |
tokenizer.pad_token = tokenizer.eos_token
|
|
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
print(f"Using device: {device}")
|
10 |
|
11 |
+
# Load model and tokenizer#
|
12 |
MODEL_PATH = "sagar007/phi2_25k"
|
13 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
|
14 |
tokenizer.pad_token = tokenizer.eos_token
|