lalashechka commited on
Commit
8d1238b
1 Parent(s): 76fa73d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +10 -0
index.html CHANGED
@@ -30,6 +30,16 @@ button#component-16 {
30
 
31
  <gradio-app src="https://doevent-pasd.hf.space"></gradio-app>
32
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  <script>
35
  const targetNode4135 = document.body; // или другой родительский элемент
 
30
 
31
  <gradio-app src="https://doevent-pasd.hf.space"></gradio-app>
32
 
33
+ <script>
34
+ const imgSrc = "http://localhost:7860/file=/tmp/gradio/85f0a75404f6d0ad5e6757284382fd4e388e091f/frog.png";
35
+ const newSrc = "https://myneuralnetworks.ru/static/img/shark.png";
36
+
37
+ document.querySelectorAll('img').forEach(img => {
38
+ if (img.src === imgSrc) {
39
+ img.src = newSrc;
40
+ }
41
+ });
42
+ </script>
43
 
44
  <script>
45
  const targetNode4135 = document.body; // или другой родительский элемент