Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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()
|