Irpan commited on
Commit
4ca6037
·
1 Parent(s): c2fb498
Files changed (1) hide show
  1. util.py +3 -4
util.py CHANGED
@@ -1,13 +1,12 @@
1
  import random
2
  from umsc import UgMultiScriptConverter
3
- from googletrans import Translator, LANGCODES
4
  import string
5
  import epitran
6
  from difflib import SequenceMatcher
7
-
8
  # For googletrans 4.0.0-rc1
9
- # import httpcore
10
- # setattr(httpcore, 'SyncHTTPTransport', 'AsyncHTTPProxy')
 
11
 
12
  ## Global Vars
13
  # Lists of Uyghur short and long texts
 
1
  import random
2
  from umsc import UgMultiScriptConverter
 
3
  import string
4
  import epitran
5
  from difflib import SequenceMatcher
 
6
  # For googletrans 4.0.0-rc1
7
+ import httpcore
8
+ setattr(httpcore, 'SyncHTTPTransport', 'AsyncHTTPProxy')
9
+ from googletrans import Translator, LANGCODES
10
 
11
  ## Global Vars
12
  # Lists of Uyghur short and long texts