Spaces:
Sleeping
Sleeping
Commit
·
971fc58
1
Parent(s):
046714d
added safety to avoid updating conv when it is empty - index error
Browse files
main.py
CHANGED
@@ -347,7 +347,8 @@ with gr.Blocks(
|
|
347 |
)
|
348 |
|
349 |
edit_conv_btn.click(
|
350 |
-
fn=lambda: gr.update(visible=
|
|
|
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 |
|