Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -363,7 +363,6 @@ body {
|
|
| 363 |
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
|
| 364 |
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
|
| 365 |
@keyframes blink { 0%,80%,100%{opacity:0;} 40%{opacity:1;} }
|
| 366 |
-
|
| 367 |
/* Health Indicator */
|
| 368 |
.health-indicator {
|
| 369 |
display: inline-flex;
|
|
@@ -378,7 +377,6 @@ body {
|
|
| 378 |
.health-yellow { background: #d29922; color: black; }
|
| 379 |
.health-red { background: #da3633; color: white; }
|
| 380 |
.health-value { font-family: 'Fira Code', monospace; }
|
| 381 |
-
|
| 382 |
/* Module Status */
|
| 383 |
.module-status {
|
| 384 |
display: inline-flex;
|
|
@@ -628,7 +626,7 @@ async def reset():
|
|
| 628 |
try:
|
| 629 |
# Check if memory_db module exists
|
| 630 |
try:
|
| 631 |
-
from memory_db import tidb_memory
|
| 632 |
return {"success": True, "message": "Memory clear ho gayi hai!"}
|
| 633 |
except ImportError:
|
| 634 |
return {"success": True, "message": "Reset command accepted (no TiDB configured)"}
|
|
@@ -642,8 +640,8 @@ async def chat(message: str = Form(...)):
|
|
| 642 |
return {"response": "Error: Groq API not configured. Please check API key."}
|
| 643 |
|
| 644 |
try:
|
| 645 |
-
from language_detector import detect_input_language, get_system_prompt, generate_basic_code
|
| 646 |
-
from memory_db import tidb_memory
|
| 647 |
except ImportError as e:
|
| 648 |
return {"response": f"Error: Required modules not found - {str(e)}"}
|
| 649 |
|
|
|
|
| 363 |
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
|
| 364 |
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
|
| 365 |
@keyframes blink { 0%,80%,100%{opacity:0;} 40%{opacity:1;} }
|
|
|
|
| 366 |
/* Health Indicator */
|
| 367 |
.health-indicator {
|
| 368 |
display: inline-flex;
|
|
|
|
| 377 |
.health-yellow { background: #d29922; color: black; }
|
| 378 |
.health-red { background: #da3633; color: white; }
|
| 379 |
.health-value { font-family: 'Fira Code', monospace; }
|
|
|
|
| 380 |
/* Module Status */
|
| 381 |
.module-status {
|
| 382 |
display: inline-flex;
|
|
|
|
| 626 |
try:
|
| 627 |
# Check if memory_db module exists
|
| 628 |
try:
|
| 629 |
+
from core.memory_db import tidb_memory
|
| 630 |
return {"success": True, "message": "Memory clear ho gayi hai!"}
|
| 631 |
except ImportError:
|
| 632 |
return {"success": True, "message": "Reset command accepted (no TiDB configured)"}
|
|
|
|
| 640 |
return {"response": "Error: Groq API not configured. Please check API key."}
|
| 641 |
|
| 642 |
try:
|
| 643 |
+
from core.language_detector import detect_input_language, get_system_prompt, generate_basic_code
|
| 644 |
+
from core.memory_db import tidb_memory
|
| 645 |
except ImportError as e:
|
| 646 |
return {"response": f"Error: Required modules not found - {str(e)}"}
|
| 647 |
|