Rulga commited on
Commit
2143f1a
·
1 Parent(s): 4903398
Files changed (1) hide show
  1. app.py +5 -3
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
- # Возвращаем полный conversation_id из первой колонки
1213
- return evt.value[0] if evt.value else ""
 
 
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