Spaces:
Runtime error
Runtime error
Commit
·
72356be
1
Parent(s):
439a98b
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ examples = [["How can you cure common cold using Ayurveda?"], ["What is the Ayur
|
|
10 |
model_path = 'microsoft/phi-1_5'#'microsoft/DialoGPT-large' #'microsoft/biogpt' #'microsoft/BioGPT-large' #microsoft/DialoGPT-large
|
11 |
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
-
model = AutoModelForCausalLM.from_pretrained(model_path)
|
14 |
|
15 |
|
16 |
def predict(input, history=[]):
|
|
|
10 |
model_path = 'microsoft/phi-1_5'#'microsoft/DialoGPT-large' #'microsoft/biogpt' #'microsoft/BioGPT-large' #microsoft/DialoGPT-large
|
11 |
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
13 |
+
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)
|
14 |
|
15 |
|
16 |
def predict(input, history=[]):
|