Spaces:
Running
Running
Commit
·
9e7848a
1
Parent(s):
7f2d7bd
update: dark theme for bright browser
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from prompts import (
|
|
13 |
get_street_interview_system_prompt,
|
14 |
)
|
15 |
from transcript import TranscriptProcessor
|
16 |
-
from utils import css, get_transcript_for_url, head
|
17 |
from utils import openai_tools as tools
|
18 |
from utils import setup_openai_key
|
19 |
|
@@ -344,8 +344,11 @@ def create_chat_interface():
|
|
344 |
fill_width=True,
|
345 |
css=css,
|
346 |
head=head,
|
347 |
-
|
|
|
348 |
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
|
|
|
|
|
349 |
),
|
350 |
) as demo:
|
351 |
chatbot = gr.Chatbot(
|
|
|
13 |
get_street_interview_system_prompt,
|
14 |
)
|
15 |
from transcript import TranscriptProcessor
|
16 |
+
from utils import css, get_transcript_for_url, head, js
|
17 |
from utils import openai_tools as tools
|
18 |
from utils import setup_openai_key
|
19 |
|
|
|
344 |
fill_width=True,
|
345 |
css=css,
|
346 |
head=head,
|
347 |
+
js=js,
|
348 |
+
theme=gr.themes.Monochrome(
|
349 |
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"]
|
350 |
+
).set(
|
351 |
+
background_fill_secondary_dark="#181818",
|
352 |
),
|
353 |
) as demo:
|
354 |
chatbot = gr.Chatbot(
|
utils.py
CHANGED
@@ -256,3 +256,7 @@ head = f"""
|
|
256 |
}});
|
257 |
</script>
|
258 |
"""
|
|
|
|
|
|
|
|
|
|
256 |
}});
|
257 |
</script>
|
258 |
"""
|
259 |
+
|
260 |
+
js = """() => {
|
261 |
+
document.body.classList.toggle('dark');
|
262 |
+
}"""
|