Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,7 @@ def check_safety(text):
|
|
| 38 |
def inference(prompt: str, max_tokens: int = 256) -> str:
|
| 39 |
model.to("cuda") # Move to GPU inside decorated function
|
| 40 |
|
| 41 |
-
SYSTEM_PROMPT =
|
| 42 |
-
"""
|
| 43 |
You are having a casual conversation with a user in Singapore.
|
| 44 |
Keep responses helpful and friendly. Avoid sensitive topics like politics, religion, or race.
|
| 45 |
If asked about harmful activities, politely decline.
|
|
|
|
| 38 |
def inference(prompt: str, max_tokens: int = 256) -> str:
|
| 39 |
model.to("cuda") # Move to GPU inside decorated function
|
| 40 |
|
| 41 |
+
SYSTEM_PROMPT = """
|
|
|
|
| 42 |
You are having a casual conversation with a user in Singapore.
|
| 43 |
Keep responses helpful and friendly. Avoid sensitive topics like politics, religion, or race.
|
| 44 |
If asked about harmful activities, politely decline.
|