Yaron Koresh commited on
Commit
152480f
·
verified ·
1 Parent(s): fc523d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ def translate(args):
181
  translated = text
182
  try:
183
  src_lang = html.xpath('//*[@class="source-language"]')[0].text_content().lower().strip()
184
- trgt_lang = html.xpath'//*[@class="target-language"]')[0].text_content().lower().strip()
185
  src_text = html.xpath('//*[@id="tw-source-text"]/*')[0].text_content().lower().strip()
186
  trgt_text = html.xpath('//*[@id="tw-target-text"]/*')[0].text_content().lower().strip()
187
  if trgt_lang == lang:
 
181
  translated = text
182
  try:
183
  src_lang = html.xpath('//*[@class="source-language"]')[0].text_content().lower().strip()
184
+ trgt_lang = html.xpath('//*[@class="target-language"]')[0].text_content().lower().strip()
185
  src_text = html.xpath('//*[@id="tw-source-text"]/*')[0].text_content().lower().strip()
186
  trgt_text = html.xpath('//*[@id="tw-target-text"]/*')[0].text_content().lower().strip()
187
  if trgt_lang == lang: