freealise commited on
Commit
df75d51
1 Parent(s): 022388b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -975,8 +975,8 @@ with gr.Blocks(css=css, js=js) as demo:
975
  }
976
  }
977
  pts_a[i] = parseInt((avg / div - 1) / 2) * 2 + 1;
978
- document.getElementById(\"chart\").childNodes[i].style.height = pts_a[i] + 'px';
979
- document.getElementById(\"chart\").childNodes[i].style.marginTop = (64-pts_a[i])/2 + 'px';
980
  }
981
  document.getElementById(\"blur_in\").getElementsByTagName(\"textarea\")[0].value = pts_a.join(\" \");
982
 
 
975
  }
976
  }
977
  pts_a[i] = parseInt((avg / div - 1) / 2) * 2 + 1;
978
+ document.getElementById(\"chart\").childNodes[i].style.height = pts_a[i] + \"px\";
979
+ document.getElementById(\"chart\").childNodes[i].style.marginTop = (64-pts_a[i])/2 + \"px\";
980
  }
981
  document.getElementById(\"blur_in\").getElementsByTagName(\"textarea\")[0].value = pts_a.join(\" \");
982