Instructions to use Backedman/TriviaAnsweringMachineREAL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Backedman/TriviaAnsweringMachineREAL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="Backedman/TriviaAnsweringMachineREAL", trust_remote_code=True)# Load model directly from transformers import AutoModelForQuestionAnswering model = AutoModelForQuestionAnswering.from_pretrained("Backedman/TriviaAnsweringMachineREAL", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update qbmodel.py
Browse files- qbmodel.py +1 -0
qbmodel.py
CHANGED
|
@@ -4,6 +4,7 @@ import sklearn
|
|
| 4 |
from .question_categorizer import TextClassificationModel
|
| 5 |
from .tfidf_model import NLPModel
|
| 6 |
import transformers
|
|
|
|
| 7 |
import numpy as np
|
| 8 |
import pandas as pd
|
| 9 |
import json
|
|
|
|
| 4 |
from .question_categorizer import TextClassificationModel
|
| 5 |
from .tfidf_model import NLPModel
|
| 6 |
import transformers
|
| 7 |
+
from huggingface_hub import hf_hub_download
|
| 8 |
import numpy as np
|
| 9 |
import pandas as pd
|
| 10 |
import json
|