Spaces:
Sleeping
Sleeping
Add application file
Browse files- app.py +0 -1
- requirements.txt +5 -0
app.py
CHANGED
@@ -4,7 +4,6 @@ import gradio as gr
|
|
4 |
language_translation_ckpt = f"Helsinki-NLP/opus-mt-nl-en"
|
5 |
translator = pipeline("translation", model=language_translation_ckpt)
|
6 |
|
7 |
-
|
8 |
def translate_nl_en(text):
|
9 |
translation = translator(text)
|
10 |
translation = translation[0]['translation_text']
|
|
|
4 |
language_translation_ckpt = f"Helsinki-NLP/opus-mt-nl-en"
|
5 |
translator = pipeline("translation", model=language_translation_ckpt)
|
6 |
|
|
|
7 |
def translate_nl_en(text):
|
8 |
translation = translator(text)
|
9 |
translation = translation[0]['translation_text']
|
requirements.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
transformers
|
2 |
+
torch
|
3 |
+
gradio
|
4 |
+
sentencepiece
|
5 |
+
sacremoses
|