Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from googletrans import Translator
|
|
7 |
import requests, os
|
8 |
|
9 |
gradio_client = GrClient(os.environ.get('GrClient_url'))
|
10 |
-
translator = Translator()
|
11 |
# Monkey patch
|
12 |
def get_types(cls_set: List[Type], component: str):
|
13 |
docset = []
|
|
|
7 |
import requests, os
|
8 |
|
9 |
gradio_client = GrClient(os.environ.get('GrClient_url'))
|
10 |
+
translator = Translator(service_urls=['translate.google.com'])
|
11 |
# Monkey patch
|
12 |
def get_types(cls_set: List[Type], component: str):
|
13 |
docset = []
|