Spaces:
Sleeping
Sleeping
Alfie Grace
commited on
Commit
·
5efbc6e
1
Parent(s):
a2cec36
Added additional custom CSS components
Browse files
app.py
CHANGED
@@ -572,7 +572,7 @@ def update_use_embeddings(widget, state):
|
|
572 |
return state
|
573 |
|
574 |
|
575 |
-
with gr.Blocks(css=".gradio-container {background-color: #090c17} #gr-component {background-color: #202937}") as block:
|
576 |
llm_state = gr.State()
|
577 |
history_state = gr.State()
|
578 |
chain_state = gr.State()
|
@@ -611,7 +611,7 @@ with gr.Blocks(css=".gradio-container {background-color: #090c17} #gr-component
|
|
611 |
with gr.Tab("Chat", elem_id="gr-component"):
|
612 |
with gr.Row():
|
613 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...)",
|
614 |
-
show_label=False, lines=1, type='password')
|
615 |
|
616 |
with gr.Row():
|
617 |
with gr.Column(scale=7):
|
@@ -622,9 +622,9 @@ with gr.Blocks(css=".gradio-container {background-color: #090c17} #gr-component
|
|
622 |
placeholder="What's the answer to life, the universe, and everything?",
|
623 |
lines=1,
|
624 |
elem_id="gr-component")
|
625 |
-
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
626 |
|
627 |
-
with gr.Tab("Settings"):
|
628 |
tools_cb_group = gr.CheckboxGroup(label="Tools:", choices=TOOLS_LIST,
|
629 |
value=TOOLS_DEFAULT_LIST, elem_id="gr-component")
|
630 |
tools_cb_group.change(update_selected_tools,
|
|
|
572 |
return state
|
573 |
|
574 |
|
575 |
+
with gr.Blocks(css=".gradio-container {background-color: #090c17} #gr-component {background-color: #202937, background-color: #202937, border-color: #384253, color: #bcc0c6}") as block:
|
576 |
llm_state = gr.State()
|
577 |
history_state = gr.State()
|
578 |
chain_state = gr.State()
|
|
|
611 |
with gr.Tab("Chat", elem_id="gr-component"):
|
612 |
with gr.Row():
|
613 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...)",
|
614 |
+
show_label=False, lines=1, type='password', elem_id="gr-component")
|
615 |
|
616 |
with gr.Row():
|
617 |
with gr.Column(scale=7):
|
|
|
622 |
placeholder="What's the answer to life, the universe, and everything?",
|
623 |
lines=1,
|
624 |
elem_id="gr-component")
|
625 |
+
submit = gr.Button(value="Send", variant="secondary", elem_id="gr-component").style(full_width=False)
|
626 |
|
627 |
+
with gr.Tab("Settings", elem_id="gr-component"):
|
628 |
tools_cb_group = gr.CheckboxGroup(label="Tools:", choices=TOOLS_LIST,
|
629 |
value=TOOLS_DEFAULT_LIST, elem_id="gr-component")
|
630 |
tools_cb_group.change(update_selected_tools,
|