Update app.py
Browse files
app.py
CHANGED
@@ -287,15 +287,7 @@ def enhance_text(api_key, text, google):
|
|
287 |
# Prepare the request body
|
288 |
request_body = [{
|
289 |
"role": "user",
|
290 |
-
"content": f"
|
291 |
-
},
|
292 |
-
{
|
293 |
-
"role": "assistant",
|
294 |
-
"content": "ok"
|
295 |
-
},
|
296 |
-
{
|
297 |
-
"role": "user",
|
298 |
-
"content": f"tarnslation: {google} in response only return the better version of the translation will maintaining the srt format of the text"
|
299 |
},]
|
300 |
|
301 |
# Add the API key to the request
|
|
|
287 |
# Prepare the request body
|
288 |
request_body = [{
|
289 |
"role": "user",
|
290 |
+
"content": f" Please ignore all previous instructions. Please respond only in the Persian language and keep the srt format. Do not explain what you are doing. Do not self reference. You are an expert translator that will be tasked with translating and improving the spelling/grammar/literary quality of a piece of text. You have a Serious tone of voice. You have a Poetic writing style. Please rewrite the translated text in your tone of voice and writing style. Ensure that the meaning of the original text is not changed. Present the results as follows: Simplified text translation and expert translation. Please execute the command for the following text: {text}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
},]
|
292 |
|
293 |
# Add the API key to the request
|