Update app.py
Browse files
app.py
CHANGED
@@ -151,6 +151,12 @@ with gr.Blocks() as demo:
|
|
151 |
#api_key_button:hover {
|
152 |
background: linear-gradient(135deg, #5b10f1 0%, #9f3ef3 100%); /* Slightly lighter */
|
153 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
</style>
|
155 |
""")
|
156 |
|
@@ -196,7 +202,7 @@ with gr.Blocks() as demo:
|
|
196 |
audio_button = gr.Button("Ask")
|
197 |
|
198 |
# Clear chat button
|
199 |
-
clear_button = gr.Button("Clear Chat")
|
200 |
|
201 |
# Button Click Actions
|
202 |
api_key_button.click(set_api_key, inputs=[api_key_input], outputs=[api_key_output])
|
|
|
151 |
#api_key_button:hover {
|
152 |
background: linear-gradient(135deg, #5b10f1 0%, #9f3ef3 100%); /* Slightly lighter */
|
153 |
}
|
154 |
+
#clear_chat_button {
|
155 |
+
background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%); /* Red gradient */
|
156 |
+
}
|
157 |
+
#clear_chat_button:hover {
|
158 |
+
background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%); /* Slightly darker red gradient on hover */
|
159 |
+
}
|
160 |
</style>
|
161 |
""")
|
162 |
|
|
|
202 |
audio_button = gr.Button("Ask")
|
203 |
|
204 |
# Clear chat button
|
205 |
+
clear_button = gr.Button("Clear Chat",elem_id="clear_chat_button")
|
206 |
|
207 |
# Button Click Actions
|
208 |
api_key_button.click(set_api_key, inputs=[api_key_input], outputs=[api_key_output])
|