Spaces:
Running
Running
Update translate.py
Browse files- translate.py +1 -1
translate.py
CHANGED
@@ -39,7 +39,7 @@ def enhance_text(api_key, text):
|
|
39 |
# Prepare the request body
|
40 |
request_body = [{
|
41 |
"role": "user",
|
42 |
-
"content": f"Please take the following SRT subtitle text in English and translate only the subtitle text into Persian. Ensure that all numbering and time codes remain unchanged. The output should be a new SRT file with the subtitles in Persian, preserving the original formatting and timings and exept for the subtitle dont return anything in response. the subtitle will be provided in the following message"
|
43 |
},
|
44 |
{
|
45 |
"role": "assistant",
|
|
|
39 |
# Prepare the request body
|
40 |
request_body = [{
|
41 |
"role": "user",
|
42 |
+
"content": f"Please take the following SRT subtitle text in English and translate only the subtitle text into Persian. Ensure that all numbering and time codes remain unchanged. convert English terms in to common persian terms. The output should be a new SRT file with the subtitles in Persian, preserving the original formatting and timings and exept for the subtitle dont return anything in response. the subtitle will be provided in the following message"
|
43 |
},
|
44 |
{
|
45 |
"role": "assistant",
|