Instructions to use abokbot/t5-end2end-questions-generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abokbot/t5-end2end-questions-generation with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("abokbot/t5-end2end-questions-generation") model = AutoModelForSeq2SeqLM.from_pretrained("abokbot/t5-end2end-questions-generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import math
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
model_name = "abokbot/t5-end2end-questions-generation"
|
| 8 |
-
max_input_length = 512
|
| 9 |
|
| 10 |
st.header("Generate questions for short Wikipedia-like articles")
|
| 11 |
|
|
|
|
| 5 |
import torch
|
| 6 |
|
| 7 |
model_name = "abokbot/t5-end2end-questions-generation"
|
|
|
|
| 8 |
|
| 9 |
st.header("Generate questions for short Wikipedia-like articles")
|
| 10 |
|