Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ API_URL = "https://api-inference.huggingface.co/models/bigscience/mt0-xxl"
|
|
15 |
def translate(input, output, text):
|
16 |
"""Translate text from input language to output language"""
|
17 |
|
18 |
-
instruction = f"""
|
19 |
|
20 |
json_ = {
|
21 |
"inputs": instruction,
|
|
|
15 |
def translate(input, output, text):
|
16 |
"""Translate text from input language to output language"""
|
17 |
|
18 |
+
instruction = f"""Translatate to {output}: {text}\nTranslation: """
|
19 |
|
20 |
json_ = {
|
21 |
"inputs": instruction,
|