Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,7 @@ def translate(text,lang):
|
|
41 |
'User-Agent': random.choice(user_agents)
|
42 |
}
|
43 |
)
|
44 |
-
|
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):
|