Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,15 +104,21 @@ def respond(message, history):
|
|
| 104 |
return response.choices[0].message.content.strip()
|
| 105 |
|
| 106 |
theme = gr.themes.Soft().set(
|
| 107 |
-
body_background_fill="#
|
| 108 |
body_text_color="#00ff88",
|
| 109 |
-
block_background_fill="#
|
| 110 |
block_border_color="#00ff88",
|
| 111 |
button_primary_background_fill="#FFD700",
|
| 112 |
button_primary_text_color="#dae9f7"
|
| 113 |
)
|
| 114 |
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
chatbot = gr.ChatInterface(
|
| 117 |
fn = respond,
|
| 118 |
cache_examples = False,
|
|
|
|
| 104 |
return response.choices[0].message.content.strip()
|
| 105 |
|
| 106 |
theme = gr.themes.Soft().set(
|
| 107 |
+
body_background_fill="#20235c",
|
| 108 |
body_text_color="#00ff88",
|
| 109 |
+
block_background_fill="#2e327d",
|
| 110 |
block_border_color="#00ff88",
|
| 111 |
button_primary_background_fill="#FFD700",
|
| 112 |
button_primary_text_color="#dae9f7"
|
| 113 |
)
|
| 114 |
|
| 115 |
+
css = """
|
| 116 |
+
button[data-testid="example"] {
|
| 117 |
+
color: #FFD700 !important;
|
| 118 |
+
}
|
| 119 |
+
"""
|
| 120 |
+
|
| 121 |
+
with gr.Blocks(theme=theme, css = css) as demo:
|
| 122 |
chatbot = gr.ChatInterface(
|
| 123 |
fn = respond,
|
| 124 |
cache_examples = False,
|