Reynold97 commited on
Commit
cf4a1dd
1 Parent(s): 5147e24

translation with gpt4

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-3.5-turbo-0125",
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
  )