feat: change to en->he
Browse files
app.py
CHANGED
@@ -2,12 +2,12 @@ import gradio as gr
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-
|
6 |
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
9 |
|
10 |
-
title = "
|
11 |
|
12 |
iface = gr.Interface(
|
13 |
fn=predict,
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-he")
|
6 |
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
9 |
|
10 |
+
title = "English to Hebrew Translation"
|
11 |
|
12 |
iface = gr.Interface(
|
13 |
fn=predict,
|