Yaron Koresh commited on
Commit
0ff05ad
·
verified ·
1 Parent(s): aacef5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -41,8 +41,7 @@ def translate(text,lang):
41
  'User-Agent': random.choice(user_agents)
42
  }
43
  )
44
- content = resp.content()
45
- translated = fromstring(content).xpath("//textarea")[1].text().strip()
46
  return translated
47
 
48
  def generate_random_string(length):
 
41
  'User-Agent': random.choice(user_agents)
42
  }
43
  )
44
+ translated = fromstring(resp.content).xpath("//textarea")[1].text().strip()
 
45
  return translated
46
 
47
  def generate_random_string(length):