Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
c65051f
1
Parent(s):
745a539
Update src/brain.py
Browse files- src/brain.py +2 -2
src/brain.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
2 |
|
3 |
model_name = "google/gemma-2b"
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name
|
5 |
-
model = AutoModelForCausalLM.from_pretrained(model_name
|
6 |
|
7 |
|
8 |
def generate_answers(query):
|
|
|
1 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
2 |
|
3 |
model_name = "google/gemma-2b"
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
5 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
6 |
|
7 |
|
8 |
def generate_answers(query):
|