yasserrmd commited on
Commit
0568211
·
verified ·
1 Parent(s): db11727

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def chat_assistant(chat_history, user_input):
30
 
31
  response = generator(
32
  [{"role": "system", "content": "You are a Data Loss Prevention (DLP) assistant designed to help users with questions and tasks related to data security, compliance, and policy enforcement. Respond concisely and professionally, offering practical guidance while ensuring clarity. If additional context or follow-up questions are required, ask the user to refine their input or provide specific examples."},
33
- {"role": "user", "content": user_input}], max_new_tokens=512, return_full_text=True
34
  )[0]["generated_text"]
35
 
36
  # Append to chat history
 
30
 
31
  response = generator(
32
  [{"role": "system", "content": "You are a Data Loss Prevention (DLP) assistant designed to help users with questions and tasks related to data security, compliance, and policy enforcement. Respond concisely and professionally, offering practical guidance while ensuring clarity. If additional context or follow-up questions are required, ask the user to refine their input or provide specific examples."},
33
+ {"role": "user", "content": user_input}], max_new_tokens=512, return_full_text=False
34
  )[0]["generated_text"]
35
 
36
  # Append to chat history