Sergidev commited on
Commit
d744ca2
·
verified ·
1 Parent(s): 877e56f

remove javascript

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -455,14 +455,6 @@ with gr.Blocks(css="style.css") as demo:
455
  )
456
 
457
  # Add JavaScript for handling image clicks
458
- demo.load(None, None, None, _js="""
459
- function handle_image_click(idx) {
460
- const images = document.querySelectorAll('#history_list img');
461
- images.forEach(img => img.style.border = 'none');
462
- images[idx].style.border = '2px solid blue';
463
- gradioApp().querySelector('#selected_image img').src = images[idx].src;
464
- gradioApp().querySelector('#selected_metadata textarea').value = JSON.stringify(generation_history[idx].metadata, null, 2);
465
- }
466
- """)
467
 
468
  demo.queue(max_size=20).launch(debug=IS_COLAB, share=IS_COLAB)
 
455
  )
456
 
457
  # Add JavaScript for handling image clicks
458
+
 
 
 
 
 
 
 
 
459
 
460
  demo.queue(max_size=20).launch(debug=IS_COLAB, share=IS_COLAB)