no _js field
Browse files
app.py
CHANGED
|
@@ -262,18 +262,19 @@ with gr.Blocks() as demo:
|
|
| 262 |
update_conversation,
|
| 263 |
inputs=[api_key],
|
| 264 |
outputs=[conversation_details, delete_button, selected_conversation_id],
|
| 265 |
-
_js="(api_key, evt) => [api_key, evt]", # This ensures the evt object is passed correctly
|
| 266 |
-
).then(
|
| 267 |
-
lambda: None, # This is a no-op function
|
| 268 |
-
None, # No inputs
|
| 269 |
-
None, # No outputs
|
| 270 |
-
_js="""
|
| 271 |
-
() => {
|
| 272 |
-
// Scroll to the conversation details
|
| 273 |
-
document.querySelector('#conversation_details').scrollIntoView({behavior: 'smooth'});
|
| 274 |
-
}
|
| 275 |
-
"""
|
| 276 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
|
| 278 |
delete_button.click(
|
| 279 |
delete_selected_conversation,
|
|
|
|
| 262 |
update_conversation,
|
| 263 |
inputs=[api_key],
|
| 264 |
outputs=[conversation_details, delete_button, selected_conversation_id],
|
| 265 |
+
# _js="(api_key, evt) => [api_key, evt]", # This ensures the evt object is passed correctly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
)
|
| 267 |
+
# .then(
|
| 268 |
+
# lambda: None, # This is a no-op function
|
| 269 |
+
# None, # No inputs
|
| 270 |
+
# None, # No outputs
|
| 271 |
+
# _js="""
|
| 272 |
+
# () => {
|
| 273 |
+
# // Scroll to the conversation details
|
| 274 |
+
# document.querySelector('#conversation_details').scrollIntoView({behavior: 'smooth'});
|
| 275 |
+
# }
|
| 276 |
+
# """
|
| 277 |
+
# )
|
| 278 |
|
| 279 |
delete_button.click(
|
| 280 |
delete_selected_conversation,
|