shukdevdatta123 commited on
Commit
402f170
·
verified ·
1 Parent(s): 40dae95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,9 +25,9 @@ def translate_to_japanese(api_key, text):
25
  try:
26
  # Call the OpenAI API to get the Japanese translation
27
  response_translation = openai.ChatCompletion.create(
28
- model="gpt-3.5-turbo", # Use the correct endpoint for chat models
29
  messages=messages_translation,
30
- max_tokens=150,
31
  temperature=0.5
32
  )
33
 
 
25
  try:
26
  # Call the OpenAI API to get the Japanese translation
27
  response_translation = openai.ChatCompletion.create(
28
+ model="gpt-4o", # Use the correct endpoint for chat models
29
  messages=messages_translation,
30
+ max_tokens=300,
31
  temperature=0.5
32
  )
33