CosmoAI commited on
Commit
a1e4869
1 Parent(s): 4816b42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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