aicodingfun commited on
Commit
98178ef
·
verified ·
1 Parent(s): 8afb5eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -261,6 +261,9 @@ def create_interface():
261
 
262
  js_code = """
263
  function gradio_init() {
 
 
 
264
  const observer = new MutationObserver((mutations, obs) => {
265
  const table = document.getElementById('periodic-table-container');
266
  if (table) {
 
261
 
262
  js_code = """
263
  function gradio_init() {
264
+ document.documentElement.classList.add('dark');
265
+
266
+ // 設定事件監聽
267
  const observer = new MutationObserver((mutations, obs) => {
268
  const table = document.getElementById('periodic-table-container');
269
  if (table) {