raghavdw commited on
Commit
68ba197
·
verified ·
1 Parent(s): 24940d0

Updated with AutoModelWithLMHead import

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from transformers import AutoModelWithLMHead, AutoTokenizer
6
 
7
 
8
  tokenizer = AutoTokenizer.from_pretrained("raghavdw/finedtuned_gpt2_medQA_model")
9
- model = AutoModelForCausalLM.from_pretrained("raghavdw/finedtuned_gpt2_medQA_model")
10
 
11
  # Function for response generation
12
 
 
6
 
7
 
8
  tokenizer = AutoTokenizer.from_pretrained("raghavdw/finedtuned_gpt2_medQA_model")
9
+ model = AutoModelWithLMHead.from_pretrained("raghavdw/finedtuned_gpt2_medQA_model")
10
 
11
  # Function for response generation
12