Update app.py
Browse files
app.py
CHANGED
|
@@ -12,31 +12,14 @@ CACHE_TTL = 3600 # 1 hour cache
|
|
| 12 |
# Initialize response cache
|
| 13 |
response_cache = TTLCache(maxsize=100, ttl=CACHE_TTL)
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
#
|
| 19 |
-
emerald = Color(
|
| 20 |
-
"#2c786c", # Base color
|
| 21 |
-
*utils.series("#2c786c", 10) # Auto-generate 10 shades
|
| 22 |
-
)
|
| 23 |
-
|
| 24 |
-
# Gold color palette
|
| 25 |
-
gold = Color(
|
| 26 |
-
"#ffd700", # Base color
|
| 27 |
-
*utils.series("#ffd700", 10)
|
| 28 |
-
)
|
| 29 |
-
|
| 30 |
-
# Create theme with custom colors
|
| 31 |
-
SPIRITUAL_THEME = Default(
|
| 32 |
-
primary_hue=emerald,
|
| 33 |
-
secondary_hue=gold,
|
| 34 |
font=[gr.themes.GoogleFont("Hind Siliguri")]
|
| 35 |
)
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
def format_krishna_prompt(message, history):
|
| 42 |
"""Create proper Mistral instruction prompt with Krishna context"""
|
|
|
|
| 12 |
# Initialize response cache
|
| 13 |
response_cache = TTLCache(maxsize=100, ttl=CACHE_TTL)
|
| 14 |
|
| 15 |
+
#theme
|
| 16 |
+
SPIRITUAL_THEME = gr.themes.Default(
|
| 17 |
+
primary_hue="teal", # Closest to emerald
|
| 18 |
+
secondary_hue="yellow", # Closest to gold
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
font=[gr.themes.GoogleFont("Hind Siliguri")]
|
| 20 |
)
|
| 21 |
|
| 22 |
+
|
|
|
|
|
|
|
| 23 |
|
| 24 |
def format_krishna_prompt(message, history):
|
| 25 |
"""Create proper Mistral instruction prompt with Krishna context"""
|