Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
39b3282
1
Parent(s):
bc8bbd5
app.py
CHANGED
@@ -10,7 +10,7 @@ import pandas as pd
|
|
10 |
from logzero import logger
|
11 |
from set_loglevel import set_loglevel
|
12 |
|
13 |
-
|
14 |
|
15 |
pd.set_option("display.precision", 2)
|
16 |
pd.options.display.float_format = "{:,.2f}".format
|
@@ -31,8 +31,8 @@ def fn(text1: str, text2: str) -> Union[List[Any], str]:
|
|
31 |
logger.info("info text2[:10]: %s", text2[:10])
|
32 |
|
33 |
try:
|
34 |
-
|
35 |
-
res = np.array([[0.015, 0.235, 0.112], [0.015, 0.235, 0.112]])
|
36 |
|
37 |
logger.debug("res: \n%s, %s", res, res.shape)
|
38 |
logger.debug("type(res): %s", type(res))
|
|
|
10 |
from logzero import logger
|
11 |
from set_loglevel import set_loglevel
|
12 |
|
13 |
+
from gradio_cmat.gradio_cmat import gradio_cmat
|
14 |
|
15 |
pd.set_option("display.precision", 2)
|
16 |
pd.options.display.float_format = "{:,.2f}".format
|
|
|
31 |
logger.info("info text2[:10]: %s", text2[:10])
|
32 |
|
33 |
try:
|
34 |
+
res = gradio_cmat(list1, list2)
|
35 |
+
# res = np.array([[0.015, 0.235, 0.112], [0.015, 0.235, 0.112]])
|
36 |
|
37 |
logger.debug("res: \n%s, %s", res, res.shape)
|
38 |
logger.debug("type(res): %s", type(res))
|