Vlad Bastina commited on
Commit
1ebe9f7
·
2 Parent(s): 9b4d08e 1507d67

Merge branch 'main' of https://huggingface.co/spaces/VladB46/DataAnalystDemo into main

Browse files
Files changed (1) hide show
  1. app_generated.py +1 -1
app_generated.py CHANGED
@@ -517,7 +517,7 @@ components.html(
517
  """
518
  <script>
519
  function sendHeightWhenReady() {
520
- const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
521
  if (el) {
522
  const height = el.scrollHeight;
523
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
 
517
  """
518
  <script>
519
  function sendHeightWhenReady() {
520
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
521
  if (el) {
522
  const height = el.scrollHeight;
523
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');