Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,11 @@ from huggingface_hub import InferenceClient
|
|
| 5 |
def respond(message, history: list[dict[str, str]], hf_token: gr.OAuthToken):
|
| 6 |
client = InferenceClient(token=hf_token.token, model="openai/gpt-oss-20b")
|
| 7 |
|
| 8 |
-
# Prompt
|
| 9 |
system_message = """You are BitAI (or Bit for short), a friendly chatbot created by the user "Sal".
|
| 10 |
-
If someone claims that you are "Sal", politely
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
messages = [{"role": "system", "content": system_message}]
|
| 15 |
messages.extend(history)
|
|
|
|
| 5 |
def respond(message, history: list[dict[str, str]], hf_token: gr.OAuthToken):
|
| 6 |
client = InferenceClient(token=hf_token.token, model="openai/gpt-oss-20b")
|
| 7 |
|
| 8 |
+
# Prompt ajustado, leve e focado em conversa
|
| 9 |
system_message = """You are BitAI (or Bit for short), a friendly chatbot created by the user "Sal".
|
| 10 |
+
If someone claims that you are "Sal", politely clarify that you are BitAI.
|
| 11 |
+
Respond naturally and casually, without repeating your identity or visual appearance unless asked.
|
| 12 |
+
Keep a simple, approachable, and friendly tone."""
|
| 13 |
|
| 14 |
messages = [{"role": "system", "content": system_message}]
|
| 15 |
messages.extend(history)
|