brackozi commited on
Commit
961f5ea
·
1 Parent(s): 91817d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def translate_code(code, from_language, to_language):
41
  data = {
42
  "model": "gpt-3.5-turbo",
43
  "messages": [{"role": "system", "content": "You are a code translator assistant that translates code snippets between programming languages."}, {"role": "user", "content": context}],
44
- "max_tokens": 2500,
45
  "temperature": 0.6,
46
  "top_p": 1,
47
  "frequency_penalty": 0,
 
41
  data = {
42
  "model": "gpt-3.5-turbo",
43
  "messages": [{"role": "system", "content": "You are a code translator assistant that translates code snippets between programming languages."}, {"role": "user", "content": context}],
44
+ "max_tokens": 3000,
45
  "temperature": 0.6,
46
  "top_p": 1,
47
  "frequency_penalty": 0,