Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,16 @@ client = InferenceClient(
|
|
| 5 |
"meta-llama/Meta-Llama-3-8B-Instruct",
|
| 6 |
)
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
def chat_mem(message,chat_history):
|
| 9 |
|
| 10 |
print(len(chat_history))
|
|
@@ -31,7 +41,7 @@ def chat_mem(message,chat_history):
|
|
| 31 |
return "", chat_history
|
| 32 |
|
| 33 |
|
| 34 |
-
with gr.Blocks(theme=
|
| 35 |
with gr.Row():
|
| 36 |
with gr.Column():
|
| 37 |
chatbot = gr.Chatbot(label='Laso AI Psychologist')
|
|
|
|
| 5 |
"meta-llama/Meta-Llama-3-8B-Instruct",
|
| 6 |
)
|
| 7 |
|
| 8 |
+
# Create a custom theme that builds on Soft and modifies it to be light
|
| 9 |
+
class SoftLightTheme(gr.themes.Soft):
|
| 10 |
+
def __init__(self):
|
| 11 |
+
super().__init__()
|
| 12 |
+
self.primary_bg = "#f9f9f9" # Light background
|
| 13 |
+
self.secondary_bg = "#ffffff" # Lighter secondary background
|
| 14 |
+
self.input_bg = "#ffffff" # Inputs with a light background
|
| 15 |
+
self.button_primary_bg = "#f0f0f0" # Light buttons with soft colors
|
| 16 |
+
self.text_color = "#333333" # Darker text for better contrast
|
| 17 |
+
|
| 18 |
def chat_mem(message,chat_history):
|
| 19 |
|
| 20 |
print(len(chat_history))
|
|
|
|
| 41 |
return "", chat_history
|
| 42 |
|
| 43 |
|
| 44 |
+
with gr.Blocks(theme=SoftLightTheme()) as demo:
|
| 45 |
with gr.Row():
|
| 46 |
with gr.Column():
|
| 47 |
chatbot = gr.Chatbot(label='Laso AI Psychologist')
|