Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ def translate_to_japanese(api_key, text):
|
|
42 |
|
43 |
# Call the OpenAI API to get the pronunciation
|
44 |
response_pronunciation = openai.ChatCompletion.create(
|
45 |
-
model="gpt-
|
46 |
messages=messages_pronunciation,
|
47 |
-
max_tokens=
|
48 |
temperature=0.5
|
49 |
)
|
50 |
|
|
|
42 |
|
43 |
# Call the OpenAI API to get the pronunciation
|
44 |
response_pronunciation = openai.ChatCompletion.create(
|
45 |
+
model="gpt-4o",
|
46 |
messages=messages_pronunciation,
|
47 |
+
max_tokens=300,
|
48 |
temperature=0.5
|
49 |
)
|
50 |
|