Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,10 +128,10 @@ def proc1(img):
|
|
| 128 |
targ_lang[0]=mylist[int(num)]
|
| 129 |
else:
|
| 130 |
pass
|
|
|
|
| 131 |
|
| 132 |
except Exception as e:
|
| 133 |
-
|
| 134 |
-
out_a = f'{mylist[int(num)]}: {out}'
|
| 135 |
|
| 136 |
else:
|
| 137 |
out_a = 'Done'
|
|
@@ -157,9 +157,10 @@ def proc2(img):
|
|
| 157 |
targ_lang[0]=mylist[int(num)]
|
| 158 |
else:
|
| 159 |
pass
|
|
|
|
|
|
|
| 160 |
except Exception as e:
|
| 161 |
-
|
| 162 |
-
out_a = f'{mylist[int(num)]}: {out}'
|
| 163 |
else:
|
| 164 |
out_a = 'Done'
|
| 165 |
pass
|
|
@@ -182,9 +183,10 @@ def proc3(img):
|
|
| 182 |
targ_lang[0]=mylist[int(num)]
|
| 183 |
else:
|
| 184 |
pass
|
|
|
|
|
|
|
| 185 |
except Exception as e:
|
| 186 |
-
|
| 187 |
-
out_a = f'{mylist[int(num)]}: {out}'
|
| 188 |
else:
|
| 189 |
out_a = 'Done'
|
| 190 |
pass
|
|
@@ -207,9 +209,10 @@ def proc4(img):
|
|
| 207 |
targ_lang[0]=mylist[int(num)]
|
| 208 |
else:
|
| 209 |
pass
|
|
|
|
|
|
|
| 210 |
except Exception as e:
|
| 211 |
-
|
| 212 |
-
out_a = f'{mylist[int(num)]}: {out}'
|
| 213 |
else:
|
| 214 |
out_a = 'Done'
|
| 215 |
pass
|
|
|
|
| 128 |
targ_lang[0]=mylist[int(num)]
|
| 129 |
else:
|
| 130 |
pass
|
| 131 |
+
out_a = f'{mylist[int(num)]}: {out}'
|
| 132 |
|
| 133 |
except Exception as e:
|
| 134 |
+
out_a = f"Error:: {e} :: {num}"
|
|
|
|
| 135 |
|
| 136 |
else:
|
| 137 |
out_a = 'Done'
|
|
|
|
| 157 |
targ_lang[0]=mylist[int(num)]
|
| 158 |
else:
|
| 159 |
pass
|
| 160 |
+
out_a = f'{mylist[int(num)]}: {out}'
|
| 161 |
+
|
| 162 |
except Exception as e:
|
| 163 |
+
out_a = f"Error:: {e} :: {num}"
|
|
|
|
| 164 |
else:
|
| 165 |
out_a = 'Done'
|
| 166 |
pass
|
|
|
|
| 183 |
targ_lang[0]=mylist[int(num)]
|
| 184 |
else:
|
| 185 |
pass
|
| 186 |
+
out_a = f'{mylist[int(num)]}: {out}'
|
| 187 |
+
|
| 188 |
except Exception as e:
|
| 189 |
+
out_a = f"Error:: {e} :: {num}"
|
|
|
|
| 190 |
else:
|
| 191 |
out_a = 'Done'
|
| 192 |
pass
|
|
|
|
| 209 |
targ_lang[0]=mylist[int(num)]
|
| 210 |
else:
|
| 211 |
pass
|
| 212 |
+
out_a = f'{mylist[int(num)]}: {out}'
|
| 213 |
+
|
| 214 |
except Exception as e:
|
| 215 |
+
out_a = f"Error:: {e} :: {num}"
|
|
|
|
| 216 |
else:
|
| 217 |
out_a = 'Done'
|
| 218 |
pass
|