Spaces:
Running
Running
Evaluated
Browse files
app.py
CHANGED
|
@@ -1209,8 +1209,10 @@ with gr.Blocks(css="""
|
|
| 1209 |
def on_table_select(evt: gr.SelectData) -> str:
|
| 1210 |
"""Handle table row selection"""
|
| 1211 |
try:
|
| 1212 |
-
#
|
| 1213 |
-
|
|
|
|
|
|
|
| 1214 |
except Exception as e:
|
| 1215 |
logger.error(f"Error in table selection: {str(e)}")
|
| 1216 |
return ""
|
|
@@ -1218,7 +1220,7 @@ with gr.Blocks(css="""
|
|
| 1218 |
# Table row selection handler
|
| 1219 |
qa_table.select(
|
| 1220 |
fn=on_table_select,
|
| 1221 |
-
inputs=[],
|
| 1222 |
outputs=[selected_conversation]
|
| 1223 |
)
|
| 1224 |
|
|
|
|
| 1209 |
def on_table_select(evt: gr.SelectData) -> str:
|
| 1210 |
"""Handle table row selection"""
|
| 1211 |
try:
|
| 1212 |
+
# Get the full row data
|
| 1213 |
+
row_data = evt.data
|
| 1214 |
+
# Return the full Conversation ID from the first column
|
| 1215 |
+
return row_data[0]
|
| 1216 |
except Exception as e:
|
| 1217 |
logger.error(f"Error in table selection: {str(e)}")
|
| 1218 |
return ""
|
|
|
|
| 1220 |
# Table row selection handler
|
| 1221 |
qa_table.select(
|
| 1222 |
fn=on_table_select,
|
| 1223 |
+
inputs=[],
|
| 1224 |
outputs=[selected_conversation]
|
| 1225 |
)
|
| 1226 |
|