Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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:
|