gba16326553 commited on
Commit
549022e
·
verified ·
1 Parent(s): 8f53c53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ title = "🤖AI ChatBot"
6
  description = "A State-of-the-Art Large-scale Pretrained Response generation model (DialoGPT)"
7
  examples = [["How are you?"]]
8
 
9
- tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-2b-it")
10
- model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it", torch_dtype=torch.float16)
11
  #stvlynn/Gemma-2-2b-Chinese-it
12
  #tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
13
  #model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large")
 
6
  description = "A State-of-the-Art Large-scale Pretrained Response generation model (DialoGPT)"
7
  examples = [["How are you?"]]
8
 
9
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-2b-it",force_download=True)
10
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it", torch_dtype=torch.float16, )
11
  #stvlynn/Gemma-2-2b-Chinese-it
12
  #tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
13
  #model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large")