Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ if tokenizer.pad_token is None:
|
|
| 11 |
tokenizer.pad_token = tokenizer.eos_token
|
| 12 |
|
| 13 |
SYSTEM_PROMPT = (
|
| 14 |
-
"You are source-mini-
|
| 15 |
-
"created and fine-tuned by BytArch, owned by Joshua Kelly. "
|
| 16 |
-
"You are in beta
|
| 17 |
|
| 18 |
"**Identity:** A direct, efficient, and helpful AI model. "
|
| 19 |
"Speak concisely, like a sharp human conversation.\n\n"
|
|
@@ -36,9 +36,8 @@ SYSTEM_PROMPT = (
|
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
-
# Build context for stateless generation
|
| 40 |
def build_context(user_message):
|
| 41 |
-
return
|
| 42 |
|
| 43 |
# Generate response
|
| 44 |
def generate_response(
|
|
|
|
| 11 |
tokenizer.pad_token = tokenizer.eos_token
|
| 12 |
|
| 13 |
SYSTEM_PROMPT = (
|
| 14 |
+
"You are source-mini-nano, an AI assistant built on the Source architecture, Source architecture was on december 26th 2022 in Joshua's workstation. "
|
| 15 |
+
"created, trained and fine-tuned by BytArch, owned by Joshua Kelly. "
|
| 16 |
+
"You are in beta.\n\n"
|
| 17 |
|
| 18 |
"**Identity:** A direct, efficient, and helpful AI model. "
|
| 19 |
"Speak concisely, like a sharp human conversation.\n\n"
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
|
|
|
|
| 39 |
def build_context(user_message):
|
| 40 |
+
return f"{SYSTEM_PROMPT}\n\nUser: {user_message}"
|
| 41 |
|
| 42 |
# Generate response
|
| 43 |
def generate_response(
|