SPACERUNNER99 commited on
Commit
a4ca082
·
verified ·
1 Parent(s): 11dd586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -306,7 +306,7 @@ def enhance_text(api_key, text, google):
306
  # Prepare the request body
307
  request_body = [{
308
  "role": "user",
309
- "content": f"I have a video transcription in English that needs to be translated into Persian. The subject of the video is philosophy and life advice. The translation should have a poetic and literary tone, but it must also stay faithful to the original meaning without introducing unnecessary changes or overcomplications.Please follow these guidelines:Preserve the exact meaning of each sentence while adding a touch of Persian literary elegance.Keep the language clear and accessible, avoiding over-complicated or embellished phrases that alter the message.Ensure proper Persian grammar and structure for a polished, fluent result.Maintain alignment with the time ranges provided for subtitles.When in doubt, prioritize clarity and fidelity to the original text over poetic embellishments.Here is the transcription:{text} . in respose dont add any thing exept for the srt formated translation."
310
  },]
311
 
312
  # Add the API key to the request
 
306
  # Prepare the request body
307
  request_body = [{
308
  "role": "user",
309
+ "content": f"{text} Translate the above text into Persian, converting the English terms used in it into common Persian terms. in respose dont add any thing exept for the srt formated translation."
310
  },]
311
 
312
  # Add the API key to the request