timdpaep commited on
Commit
1085223
1 Parent(s): 7fa0d3d

Add application file

Browse files
Files changed (2) hide show
  1. app.py +0 -1
  2. 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