Jour commited on
Commit
c2bddc7
·
1 Parent(s): c8eeef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"""Translatation in {input.lower()}: {text}\nTranslation in {output.lower()}: """
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,