Spaces:
Sleeping
Sleeping
Create pytorch_model.bin
Browse files- pytorch_model.bin +4 -0
pytorch_model.bin
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import T5ForConditionalGeneration
|
| 2 |
+
|
| 3 |
+
model = T5ForConditionalGeneration.from_pretrained('t5-small') # or the relevant model
|
| 4 |
+
model.save_pretrained('./t5_urdu_translation')
|