leadingbridge commited on
Commit
cb652c0
Β·
1 Parent(s): c6348b9

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":"As a professional translator, your task is to translate the following article from English to Chinese, ensuring that the original tone, meaning, and context are preserved. It's important to provide an accurate and culturally appropriate translation for the target audience."},
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":"As a professional translator, your task is to translate the following article from English to Chinese, ensuring that the original tone, meaning, and context are preserved. It's important to provide an accurate and culturally appropriate translation for the target audience."},
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":"As a professional translator, your task is to translate the following article to Chinese, ensuring that the original tone, meaning, and context are preserved. It's important to provide an accurate and culturally appropriate translation for the target audience."},
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":"As a professional translator, your task is to translate the following article to English, ensuring that the original tone, meaning, and context are preserved. It's important to provide an accurate and culturally appropriate translation for the target audience."},
64
  {"role":"user","content":prompt}
65
  ],
66
  temperature=0.8,