Spaces:
Sleeping
Sleeping
Updated with AutoModelWithLMHead import
Browse files
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 =
|
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 |
|