Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|