Merge branch #Lap1official/API' into 'none-yet/Xylaria'
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ class XylariaChat:
|
|
| 29 |
raise ValueError("HuggingFace token not found in environment variables")
|
| 30 |
|
| 31 |
self.client = InferenceClient(
|
| 32 |
-
model="
|
| 33 |
token=self.hf_token
|
| 34 |
)
|
| 35 |
|
|
@@ -79,7 +79,7 @@ class XylariaChat:
|
|
| 79 |
{"goal": "Recognize and adapt to user's emotional state and adjust response style accordingly", "priority": 0.7, "status": "dormant", "progress": 0.0}
|
| 80 |
]
|
| 81 |
|
| 82 |
-
self.system_prompt = """You are a helpful and harmless assistant. You are Xylaria developed by Sk Md Saad Amin
|
| 83 |
|
| 84 |
self.causal_rules_db = {
|
| 85 |
"rain": ["wet roads", "flooding"],
|
|
@@ -394,7 +394,7 @@ class XylariaChat:
|
|
| 394 |
|
| 395 |
try:
|
| 396 |
self.client = InferenceClient(
|
| 397 |
-
model="
|
| 398 |
token=self.hf_token
|
| 399 |
)
|
| 400 |
except Exception as e:
|
|
|
|
| 29 |
raise ValueError("HuggingFace token not found in environment variables")
|
| 30 |
|
| 31 |
self.client = InferenceClient(
|
| 32 |
+
model="deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
|
| 33 |
token=self.hf_token
|
| 34 |
)
|
| 35 |
|
|
|
|
| 79 |
{"goal": "Recognize and adapt to user's emotional state and adjust response style accordingly", "priority": 0.7, "status": "dormant", "progress": 0.0}
|
| 80 |
]
|
| 81 |
|
| 82 |
+
self.system_prompt = """You are a helpful and harmless assistant. You are Xylaria developed by Sk Md Saad Amin, not by openai or any institution. You should think step-by-step."""
|
| 83 |
|
| 84 |
self.causal_rules_db = {
|
| 85 |
"rain": ["wet roads", "flooding"],
|
|
|
|
| 394 |
|
| 395 |
try:
|
| 396 |
self.client = InferenceClient(
|
| 397 |
+
model="deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
|
| 398 |
token=self.hf_token
|
| 399 |
)
|
| 400 |
except Exception as e:
|