Spaces:
Sleeping
Sleeping
JJFrancisco
commited on
Commit
•
eb4a125
1
Parent(s):
8997f2f
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,12 @@ import gradio as gr
|
|
2 |
|
3 |
import subprocess
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# NOS-MT-en-gl.p
|
8 |
|
|
|
2 |
|
3 |
import subprocess
|
4 |
|
5 |
+
from transformers import AutoModel
|
6 |
+
|
7 |
+
model = AutoModel.from_pretrained("proxectonos/Nos_MT-OpenNMT-en-gl")
|
8 |
+
|
9 |
+
# Push the model to your namespace with the name "my-finetuned-bert".
|
10 |
+
model.push_to_hub("Nos_MT-OpenNMT-en-gl")
|
11 |
|
12 |
# NOS-MT-en-gl.p
|
13 |
|