minimew commited on
Commit
ee52855
·
verified ·
1 Parent(s): 6efbf0c

Upload src/app/giao_dien/text_to_sql_dashboard/code.html with huggingface_hub

Browse files
src/app/giao_dien/text_to_sql_dashboard/code.html CHANGED
@@ -799,6 +799,8 @@
799
  });
800
 
801
  // ---- Init ----
802
- loadMeta();
 
 
803
  </script>
804
  </body></html>
 
799
  });
800
 
801
  // ---- Init ----
802
+ // Reset to default database on every page load so stale server-side
803
+ // state (e.g. from a previous CSV upload on HF Spaces) does not persist.
804
+ fetch(`${API_BASE}/api/reset`, { method: 'POST' }).finally(() => loadMeta());
805
  </script>
806
  </body></html>