Spaces:
Runtime error
Runtime error
Commit
Β·
c6348b9
1
Parent(s):
511c3e7
Update app.py
Browse files
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":"
|
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":"
|
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 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 |
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,
|