Spaces:
Runtime error
Runtime error
translation with gpt4
Browse files
app.py
CHANGED
@@ -201,9 +201,9 @@ async def generate_article_anyscale(model, prompt, user_prompt):
|
|
201 |
|
202 |
async def generate_articles(title):
|
203 |
completion = openai_client.chat.completions.create(
|
204 |
-
model="gpt-
|
205 |
messages=[
|
206 |
-
{"role": "system", "content": "You are a helpful English translator"},
|
207 |
{"role": "user", "content": f"Help me to translate this to English:{title}."}
|
208 |
]
|
209 |
)
|
|
|
201 |
|
202 |
async def generate_articles(title):
|
203 |
completion = openai_client.chat.completions.create(
|
204 |
+
model="gpt-4-turbo",
|
205 |
messages=[
|
206 |
+
{"role": "system", "content": "You are a helpful Spanish to English translator"},
|
207 |
{"role": "user", "content": f"Help me to translate this to English:{title}."}
|
208 |
]
|
209 |
)
|