Instructions to use Mr-Vicky-01/context-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mr-Vicky-01/context-qa with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Mr-Vicky-01/context-qa") model = AutoModelForSeq2SeqLM.from_pretrained("Mr-Vicky-01/context-qa") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,8 +8,8 @@ library_name: transformers
|
|
| 8 |
```python
|
| 9 |
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
| 10 |
|
| 11 |
-
model = T5ForConditionalGeneration.from_pretrained("Mr-Vicky-01/context-qa
|
| 12 |
-
tokenizer = T5Tokenizer.from_pretrained("Mr-Vicky-01/context-qa
|
| 13 |
|
| 14 |
|
| 15 |
def get_answer(question, prev_qa, context):
|
|
|
|
| 8 |
```python
|
| 9 |
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
| 10 |
|
| 11 |
+
model = T5ForConditionalGeneration.from_pretrained("Mr-Vicky-01/context-qa")
|
| 12 |
+
tokenizer = T5Tokenizer.from_pretrained("Mr-Vicky-01/context-qa")
|
| 13 |
|
| 14 |
|
| 15 |
def get_answer(question, prev_qa, context):
|