leadingbridge commited on
Commit
3efa022
1 Parent(s): 057af42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def openai_translation_ec(prompt):
42
  response = openai.ChatCompletion.create(
43
  model="gpt-3.5-turbo",
44
  messages=[
45
- {"role":"system","content":"You are a sentense translator which translate article from English to Chinese. Don't do any task other than translation"},
46
  {"role":"user","content":prompt}
47
  ],
48
  temperature=0.8,
@@ -60,7 +60,7 @@ def openai_translation_ce(prompt):
60
  response = openai.ChatCompletion.create(
61
  model="gpt-3.5-turbo",
62
  messages=[
63
- {"role":"system","content":"You are a sentense translator which translate article from Chinese to English. Don't do any task other than translation"},
64
  {"role":"user","content":prompt}
65
  ],
66
  temperature=0.8,
 
42
  response = openai.ChatCompletion.create(
43
  model="gpt-3.5-turbo",
44
  messages=[
45
+ {"role":"system","content":"Translate the article to Chinese:"},
46
  {"role":"user","content":prompt}
47
  ],
48
  temperature=0.8,
 
60
  response = openai.ChatCompletion.create(
61
  model="gpt-3.5-turbo",
62
  messages=[
63
+ {"role":"system","content":"Translate the article to English:},
64
  {"role":"user","content":prompt}
65
  ],
66
  temperature=0.8,