Spaces:
Sleeping
Sleeping
Commit ·
bc3166f
1
Parent(s): d7a6f4f
fix(ui): type table select event callback to avoid gradio warnings
Browse files- src/ui/app_factory.py +1 -1
src/ui/app_factory.py
CHANGED
|
@@ -834,7 +834,7 @@ def create_app() -> gr.Blocks:
|
|
| 834 |
only_conflicts,
|
| 835 |
)
|
| 836 |
|
| 837 |
-
def on_select(evt):
|
| 838 |
if isinstance(evt.index, tuple):
|
| 839 |
return int(evt.index[0])
|
| 840 |
if isinstance(evt.index, int):
|
|
|
|
| 834 |
only_conflicts,
|
| 835 |
)
|
| 836 |
|
| 837 |
+
def on_select(evt: gr.SelectData):
|
| 838 |
if isinstance(evt.index, tuple):
|
| 839 |
return int(evt.index[0])
|
| 840 |
if isinstance(evt.index, int):
|