Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoTokenizer, AutoModelForQuestionAnswering
|
|
3 |
import torch
|
4 |
|
5 |
# Load the tokenizer and model
|
6 |
-
model_name = '
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
model = AutoModelForQuestionAnswering.from_pretrained('./results') # Path to your fine-tuned model
|
9 |
|
|
|
3 |
import torch
|
4 |
|
5 |
# Load the tokenizer and model
|
6 |
+
model_name = './QAModel'
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
model = AutoModelForQuestionAnswering.from_pretrained('./results') # Path to your fine-tuned model
|
9 |
|