Yaron Koresh commited on
Commit
edc4d19
·
verified ·
1 Parent(s): 324b57d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -183,6 +183,8 @@ def infer2(p):
183
  return "_"+name
184
 
185
  def run1(p1,p2,*result):
 
 
186
  p1_en = translate(p1,"english")
187
  p2_en = translate(p2,"english")
188
  p = {"a":p1_en,"b":p2_en}
@@ -197,8 +199,6 @@ def run1(p1,p2,*result):
197
  pool1.join()
198
  pool1.clear()
199
 
200
- global out1
201
-
202
  def run2(p1,p2,*result):
203
  p1_en = translate(p1,"english")
204
  p2_en = translate(p2,"english")
 
183
  return "_"+name
184
 
185
  def run1(p1,p2,*result):
186
+ global out1
187
+
188
  p1_en = translate(p1,"english")
189
  p2_en = translate(p2,"english")
190
  p = {"a":p1_en,"b":p2_en}
 
199
  pool1.join()
200
  pool1.clear()
201
 
 
 
202
  def run2(p1,p2,*result):
203
  p1_en = translate(p1,"english")
204
  p2_en = translate(p2,"english")