finnstrom3693
commited on
Commit
•
c2f3795
1
Parent(s):
9cae144
Upload translation-id-en-marian-gradio.py
Browse files
translation-id-en-marian-gradio.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import MarianMTModel, MarianTokenizer
|
3 |
import torch
|
|
|
1 |
+
# pip install gradio transformers nltk
|
2 |
+
# pip install torch --index-url https://download.pytorch.org/whl/cpu
|
3 |
+
|
4 |
import gradio as gr
|
5 |
from transformers import MarianMTModel, MarianTokenizer
|
6 |
import torch
|