Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -361,12 +361,16 @@ def generate_function_call(prompt):
|
|
361 |
# theme = "gary109/HaleyCH_Theme"
|
362 |
# theme = "derekzen/stardust"
|
363 |
# theme = "Taithrah/Minimal"
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
|
|
|
|
|
|
|
|
370 |
theme = "rottenlittlecreature/Moon_Goblin"
|
371 |
# theme = "xiaobaiyuan/theme_brief"
|
372 |
# theme = "gary109/Emerald_Isle"
|
@@ -399,7 +403,7 @@ demo = gr.ChatInterface(
|
|
399 |
chatbot=my_chatbot,
|
400 |
title="Investor Assistant 🦹♂️",
|
401 |
theme=theme,
|
402 |
-
|
403 |
)
|
404 |
|
405 |
demo.queue().launch(show_api=False)
|
|
|
361 |
# theme = "gary109/HaleyCH_Theme"
|
362 |
# theme = "derekzen/stardust"
|
363 |
# theme = "Taithrah/Minimal"
|
364 |
+
js_func = """
|
365 |
+
function refresh() {
|
366 |
+
const url = new URL(window.location);
|
367 |
+
|
368 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
369 |
+
url.searchParams.set('__theme', 'dark');
|
370 |
+
window.location.href = url.href;
|
371 |
+
}
|
372 |
+
}
|
373 |
+
"""
|
374 |
theme = "rottenlittlecreature/Moon_Goblin"
|
375 |
# theme = "xiaobaiyuan/theme_brief"
|
376 |
# theme = "gary109/Emerald_Isle"
|
|
|
403 |
chatbot=my_chatbot,
|
404 |
title="Investor Assistant 🦹♂️",
|
405 |
theme=theme,
|
406 |
+
js= js_func
|
407 |
)
|
408 |
|
409 |
demo.queue().launch(show_api=False)
|