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