shukdevdatta123 commited on
Commit
e8aad94
·
verified ·
1 Parent(s): 004d6c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def translate_to_japanese(api_key, text):
20
  try:
21
  # Call the OpenAI API to get the translation
22
  response = openai.Completion.create(
23
- engine="text-davinci-003", # Use gpt-3.5-turbo or other models if available
24
  prompt=prompt,
25
  max_tokens=150, # Adjust token limit for longer outputs
26
  temperature=0.5
 
20
  try:
21
  # Call the OpenAI API to get the translation
22
  response = openai.Completion.create(
23
+ engine="gpt-3.5-turbo", # Use gpt-3.5-turbo or other models if available
24
  prompt=prompt,
25
  max_tokens=150, # Adjust token limit for longer outputs
26
  temperature=0.5