Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ class XylariaChat:
|
|
| 11 |
|
| 12 |
# Initialize the inference client
|
| 13 |
self.client = InferenceClient(
|
| 14 |
-
model="
|
| 15 |
api_key=self.hf_token
|
| 16 |
)
|
| 17 |
|
|
@@ -20,8 +20,8 @@ class XylariaChat:
|
|
| 20 |
self.persistent_memory = {}
|
| 21 |
|
| 22 |
# System prompt with more detailed instructions
|
| 23 |
-
self.system_prompt = """You are a helpful and harmless
|
| 24 |
-
"""
|
| 25 |
def store_information(self, key, value):
|
| 26 |
"""Store important information in persistent memory"""
|
| 27 |
self.persistent_memory[key] = value
|
|
|
|
| 11 |
|
| 12 |
# Initialize the inference client
|
| 13 |
self.client = InferenceClient(
|
| 14 |
+
model= os.getenv("MODEL_NAME"),
|
| 15 |
api_key=self.hf_token
|
| 16 |
)
|
| 17 |
|
|
|
|
| 20 |
self.persistent_memory = {}
|
| 21 |
|
| 22 |
# System prompt with more detailed instructions
|
| 23 |
+
self.system_prompt = """You are a helpful and harmless assistant. You are Xylaria developed by Sk Md Saad Amin. You should think step-by-step.
|
| 24 |
+
"""Y
|
| 25 |
def store_information(self, key, value):
|
| 26 |
"""Store important information in persistent memory"""
|
| 27 |
self.persistent_memory[key] = value
|