Spaces:
Running
on
Zero
Running
on
Zero
remove javascript
Browse files
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 |
-
|
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)
|