Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
f922479
1
Parent(s):
de714c1
Update error_msg
Browse files- radiobee/error_msg.py +2 -2
radiobee/error_msg.py
CHANGED
|
@@ -8,7 +8,7 @@ import pandas as pd
|
|
| 8 |
def error_msg(
|
| 9 |
msg: Optional[Union[str, Exception]],
|
| 10 |
title: str = "error message",
|
| 11 |
-
) -> Tuple[
|
| 12 |
"""Prepare an error message for gradiobee outputs."""
|
| 13 |
if msg is None:
|
| 14 |
msg = "none..."
|
|
@@ -22,4 +22,4 @@ def error_msg(
|
|
| 22 |
|
| 23 |
# return df, *((None,) * 4) # pyright complains
|
| 24 |
# return df, None, None, None, None, None, None, None
|
| 25 |
-
return df, None, None, None, None, None, None
|
|
|
|
| 8 |
def error_msg(
|
| 9 |
msg: Optional[Union[str, Exception]],
|
| 10 |
title: str = "error message",
|
| 11 |
+
) -> Tuple[str, None], None, None, None, None, None, None]:
|
| 12 |
"""Prepare an error message for gradiobee outputs."""
|
| 13 |
if msg is None:
|
| 14 |
msg = "none..."
|
|
|
|
| 22 |
|
| 23 |
# return df, *((None,) * 4) # pyright complains
|
| 24 |
# return df, None, None, None, None, None, None, None
|
| 25 |
+
return df.to_html(), None, None, None, None, None, None
|