Spaces:
Runtime error
Runtime error
Update button styles
#5
by
samayg
- opened
app.py
CHANGED
|
@@ -92,7 +92,8 @@ CSS ="""
|
|
| 92 |
footer.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq { display: none; }
|
| 93 |
#component-0 { height: 100%; }
|
| 94 |
#chatbot { flex-grow: 1; overflow: auto;}
|
| 95 |
-
|
|
|
|
| 96 |
"""
|
| 97 |
|
| 98 |
with gr.Blocks(theme='samayg/StriimTheme', css=CSS) as demo:
|
|
@@ -100,7 +101,7 @@ with gr.Blocks(theme='samayg/StriimTheme', css=CSS) as demo:
|
|
| 100 |
chatbot = gr.Chatbot(show_label=False, height=300)
|
| 101 |
msg = gr.Textbox(label="Question:")
|
| 102 |
examples = gr.Examples(examples=[['What\'s new in Striim version 4.2.0?'], ['My Striim application keeps crashing. What should I do?'], ['How can I improve Striim performance?'], ['It says could not connect to source or target. What should I do?']], inputs=msg, label="Examples")
|
| 103 |
-
submit = gr.Button("Submit")
|
| 104 |
|
| 105 |
#with gr.Accordion(label="Advanced options", open=False):
|
| 106 |
#slider = gr.Slider(minimum=0, maximum=1, step=0.01, value=0, label="Temperature", info="The temperature of StriimGPT, default at 0. Higher values may allow for better inference but may fabricate false information.")
|
|
|
|
| 92 |
footer.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq.svelte-1ax1toq { display: none; }
|
| 93 |
#component-0 { height: 100%; }
|
| 94 |
#chatbot { flex-grow: 1; overflow: auto;}
|
| 95 |
+
#submit-button { background: "#00A7E5"; color: "white"; }
|
| 96 |
+
#submit-button:hover { background: "#00A7E5"; color: "white"; box-shadow: "0 8px 10px 1px #9d9ea124, 0 3px 14px 2px #9d9ea11f, 0 5px 5px -3px #9d9ea133"; }
|
| 97 |
"""
|
| 98 |
|
| 99 |
with gr.Blocks(theme='samayg/StriimTheme', css=CSS) as demo:
|
|
|
|
| 101 |
chatbot = gr.Chatbot(show_label=False, height=300)
|
| 102 |
msg = gr.Textbox(label="Question:")
|
| 103 |
examples = gr.Examples(examples=[['What\'s new in Striim version 4.2.0?'], ['My Striim application keeps crashing. What should I do?'], ['How can I improve Striim performance?'], ['It says could not connect to source or target. What should I do?']], inputs=msg, label="Examples")
|
| 104 |
+
submit = gr.Button("Submit", elem_id="submit-button")
|
| 105 |
|
| 106 |
#with gr.Accordion(label="Advanced options", open=False):
|
| 107 |
#slider = gr.Slider(minimum=0, maximum=1, step=0.01, value=0, label="Temperature", info="The temperature of StriimGPT, default at 0. Higher values may allow for better inference but may fabricate false information.")
|