feat: replace en->fr with he->en
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-en
|
| 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-he-en")
|
| 6 |
|
| 7 |
def predict(text):
|
| 8 |
return pipe(text)[0]["translation_text"]
|
| 9 |
|
| 10 |
+
title = "Hebrew to English Translation"
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=predict,
|