rushankg commited on
Commit
de412e8
·
verified ·
1 Parent(s): d446c1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def translate_text(text, input_language, output_language):
40
  {"role": "system", "content": f"You translate user input from {input_language} to {output_language}"},
41
  {"role": "user", "content": text}
42
  ],
43
- max_tokens=500,
44
  temperature=0
45
  )
46
  translation = response.choices[0].message['content'].strip()
 
40
  {"role": "system", "content": f"You translate user input from {input_language} to {output_language}"},
41
  {"role": "user", "content": text}
42
  ],
43
+ max_tokens=2000,
44
  temperature=0
45
  )
46
  translation = response.choices[0].message['content'].strip()