AhmadMustafa commited on
Commit
e4d69ac
·
1 Parent(s): fa52b9a

update: css, js

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils.py +0 -9
app.py CHANGED
@@ -342,7 +342,7 @@ def create_chat_interface():
342
  fill_width=True,
343
  css=css,
344
  head=head,
345
- js=js,
346
  theme=gr.themes.Default(
347
  font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
348
  ),
 
342
  fill_width=True,
343
  css=css,
344
  head=head,
345
+ # js=js,
346
  theme=gr.themes.Default(
347
  font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
348
  ),
utils.py CHANGED
@@ -238,12 +238,3 @@ head = f"""
238
  }});
239
  </script>
240
  """
241
-
242
- js = """function refresh() {
243
- const url = new URL(window.location);
244
- if (url.searchParams.get('__theme') !== 'dark') {
245
- url.searchParams.set('__theme', 'dark');
246
- window.location.href = url.href;
247
- }
248
- }
249
- """
 
238
  }});
239
  </script>
240
  """