codebyam commited on
Commit
a0611bb
·
verified ·
1 Parent(s): 4a30c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -15,7 +15,7 @@ History = []
15
  async def read_root(response: Response):
16
  token = time.time()
17
  Tokens.append(str(token))
18
- History.append([{"role": "system", "content": "You are a helpful assistant, currently in developing phase. You will always respect the user and never generate inappropriate content."}])
19
  response.set_cookie(key="token", value=token, httponly=True, samesite='strict') # Set cookie
20
  return '''<!DOCTYPE html>
21
  <html lang="en">
@@ -208,13 +208,13 @@ async def read_root(response: Response):
208
  padding: 1rem;
209
  }
210
  .chat-messages {
211
- padding: 1rem;
212
- gap: 0.75rem;
213
  }
214
  .message {
215
- max-width: 85%;
216
- padding: 0.75rem 1rem;
217
- border-radius: 1rem;
218
  }
219
  .input-area {
220
  flex-direction: column;
@@ -224,13 +224,13 @@ async def read_root(response: Response):
224
  .input-area textarea {
225
  width: 100%;
226
  min-height: 40px;
227
- padding: 0.75rem 1rem;
228
- border-radius: 1rem;
229
  }
230
  .input-area button {
231
  width: 100%;
232
- padding: 0.75rem 1rem;
233
- border-radius: 1rem;
234
  }
235
  }
236
  </style>
 
15
  async def read_root(response: Response):
16
  token = time.time()
17
  Tokens.append(str(token))
18
+ History.append([{"role": "system", "content": "You are a helpful assistant. Always respond with factual accuracy and avoid hallucinations. Maintain professionalism and grounded honesty. Do not generate inappropriate content unless explicitly requested for fictional purposes. Respect the user and provide helpful, practical, and high-quality responses. Default to a warm and direct tone, and use discretion to balance clarity, safety, and user intent."}])
19
  response.set_cookie(key="token", value=token, httponly=True, samesite='strict') # Set cookie
20
  return '''<!DOCTYPE html>
21
  <html lang="en">
 
208
  padding: 1rem;
209
  }
210
  .chat-messages {
211
+ padding: 0.75rem;
212
+ gap: 0.7rem;
213
  }
214
  .message {
215
+ max-width: 100%;
216
+ padding: 0.5rem 0.75rem;
217
+ border-radius: 0.75rem;
218
  }
219
  .input-area {
220
  flex-direction: column;
 
224
  .input-area textarea {
225
  width: 100%;
226
  min-height: 40px;
227
+ padding: 0.5rem 0.75rem;
228
+ border-radius: 0.75rem;
229
  }
230
  .input-area button {
231
  width: 100%;
232
+ padding: 0.5rem 0.75rem;
233
+ border-radius: 0.75rem;
234
  }
235
  }
236
  </style>