Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
4 |
|
5 |
# Initialize the Hugging Face model
|
6 |
# model = pipeline(model='google/flan-t5-base')
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained("google/gemma-7b")
|
8 |
-
model = AutoModelForCausalLM.from_pretrained("google/gemma-7b")
|
9 |
|
10 |
|
11 |
# Define the chatbot function
|
|
|
4 |
|
5 |
# Initialize the Hugging Face model
|
6 |
# model = pipeline(model='google/flan-t5-base')
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained("google/gemma-7b", use_auth_token=True)
|
8 |
+
model = AutoModelForCausalLM.from_pretrained("google/gemma-7b", use_auth_token=True)
|
9 |
|
10 |
|
11 |
# Define the chatbot function
|