e-hossam96 commited on
Commit
971fc58
·
1 Parent(s): 046714d

added safety to avoid updating conv when it is empty - index error

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -347,7 +347,8 @@ with gr.Blocks(
347
  )
348
 
349
  edit_conv_btn.click(
350
- fn=lambda: gr.update(visible=True),
 
351
  outputs=edit_conv_col,
352
  )
353
 
 
347
  )
348
 
349
  edit_conv_btn.click(
350
+ fn=lambda conv: gr.update(visible=bool(conv)),
351
+ inputs=[conversation_data],
352
  outputs=edit_conv_col,
353
  )
354