AnonymousSub commited on
Commit
72356be
·
1 Parent(s): 439a98b

Update app.py

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