Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
8ccf616
1
Parent(s):
fc2ede0
Update (dev) time.tzset()
Browse files
app.py
CHANGED
|
@@ -64,8 +64,19 @@ def ml_fn(
|
|
| 64 |
logger.error(exc)
|
| 65 |
|
| 66 |
with about_time() as t:
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
_ = len(paras1) + len(paras2)
|
| 71 |
av = f"{t.duration / _ * 1000:.2f}"
|
|
|
|
| 64 |
logger.error(exc)
|
| 65 |
|
| 66 |
with about_time() as t:
|
| 67 |
+
try:
|
| 68 |
+
cmat = gen_cmat(paras1, paras2)
|
| 69 |
+
except Exception as exc:
|
| 70 |
+
logger.exception(exc)
|
| 71 |
+
logger.info(paras1)
|
| 72 |
+
logger.info(paras2)
|
| 73 |
+
logger.info("len(paras1): %s, len(paras2): %s", len(paras1), len(paras2))
|
| 74 |
+
cmat = [[]]
|
| 75 |
+
try:
|
| 76 |
+
aset = cmat2aset(cmat)
|
| 77 |
+
except Exception as exc:
|
| 78 |
+
logger.exception(exc)
|
| 79 |
+
aset = [["", "", ""]]
|
| 80 |
|
| 81 |
_ = len(paras1) + len(paras2)
|
| 82 |
av = f"{t.duration / _ * 1000:.2f}"
|