Spaces:
Running
Running
Merge pull request #117 from XMB-7/better_prompt
Browse files- functional.py +11 -3
functional.py
CHANGED
@@ -34,9 +34,17 @@ def get_functionals():
|
|
34 |
"Prefix": r"Please translate following sentence to English:" + "\n\n",
|
35 |
"Suffix": r"",
|
36 |
},
|
37 |
-
"
|
38 |
-
"Prefix": r"
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
},
|
41 |
"英译中": {
|
42 |
"Prefix": r"请翻译成中文:" + "\n\n",
|
|
|
34 |
"Prefix": r"Please translate following sentence to English:" + "\n\n",
|
35 |
"Suffix": r"",
|
36 |
},
|
37 |
+
"学术中英互译": {
|
38 |
+
"Prefix": r"I want you to act as a scientific English-Chinese translator, " +
|
39 |
+
r"I will provide you with some paragraphs in one language " +
|
40 |
+
r"and your task is to accurately and academically translate the paragraphs only into the other language. " +
|
41 |
+
r"Do not repeat the original provided paragraphs after translation. " +
|
42 |
+
r"You should use artificial intelligence tools, " +
|
43 |
+
r"such as natural language processing, and rhetorical knowledge " +
|
44 |
+
r"and experience about effective writing techniques to reply. " +
|
45 |
+
r"I'll give you my paragraphs as follows, tell me what language it is written in, and then translate:" + "\n\n",
|
46 |
+
"Suffix": "",
|
47 |
+
"Color": "secondary",
|
48 |
},
|
49 |
"英译中": {
|
50 |
"Prefix": r"请翻译成中文:" + "\n\n",
|