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 QBModelWrapper.py
Browse files- QBModelWrapper.py +2 -0
QBModelWrapper.py
CHANGED
|
@@ -9,6 +9,8 @@ FILENAME = "models/Mythology_tfidf.pkl"
|
|
| 9 |
class QBModelWrapper(PreTrainedModel):
|
| 10 |
config_class= QBModelConfig
|
| 11 |
config = QBModelConfig
|
|
|
|
|
|
|
| 12 |
|
| 13 |
hf_hub_download(repo_id=REPO_ID, filename='tfidf_model.py', local_dir='.')
|
| 14 |
hf_hub_download(repo_id=REPO_ID, filename='question_categorizer.py', local_dir='.')
|
|
|
|
| 9 |
class QBModelWrapper(PreTrainedModel):
|
| 10 |
config_class= QBModelConfig
|
| 11 |
config = QBModelConfig
|
| 12 |
+
|
| 13 |
+
print("jdkalf;jdskl")
|
| 14 |
|
| 15 |
hf_hub_download(repo_id=REPO_ID, filename='tfidf_model.py', local_dir='.')
|
| 16 |
hf_hub_download(repo_id=REPO_ID, filename='question_categorizer.py', local_dir='.')
|