ldhldh commited on
Commit
ce38c3f
1 Parent(s): cbdb794

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = []