translators-will commited on
Commit
4e6f40c
·
verified ·
1 Parent(s): 7e496f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -52,7 +52,8 @@ def translate_transcript(transcript):
52
  messages = [
53
  {
54
  "role": "user",
55
- "content": f"Translate the following Spanish text to professional English:\n\n{transcript}"
 
56
  }
57
  ]
58
  )
 
52
  messages = [
53
  {
54
  "role": "user",
55
+ "content": f"""Translate the following Spanish text to professional English.
56
+ Only return the translation, nothing else. Do not provide any commentary afterward.\n\n{transcript}"""
57
  }
58
  ]
59
  )