Switched to google/gemma-2b-it
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ import re
|
|
| 5 |
|
| 6 |
# Load model and tokenizer
|
| 7 |
print("Loading gemma...")
|
| 8 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 9 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 10 |
|
| 11 |
# Add pad token if it doesn't exist
|
| 12 |
if tokenizer.pad_token is None:
|
|
|
|
| 5 |
|
| 6 |
# Load model and tokenizer
|
| 7 |
print("Loading gemma...")
|
| 8 |
+
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b-it")
|
| 9 |
+
model = AutoModelForCausalLM.from_pretrained("google/gemma-2b-it")
|
| 10 |
|
| 11 |
# Add pad token if it doesn't exist
|
| 12 |
if tokenizer.pad_token is None:
|