JJFrancisco commited on
Commit
eb4a125
1 Parent(s): 8997f2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -2,7 +2,12 @@ import gradio as gr
2
 
3
  import subprocess
4
 
5
- git clone https://huggingface.co/proxectonos/Nos_MT-OpenNMT-en-gl
 
 
 
 
 
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