yasserrmd commited on
Commit
96644c1
·
verified ·
1 Parent(s): f006a0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def chat_assistant(chat_history, user_input):
29
 
30
  response = generator(
31
  [{"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."},
32
- {"role": "user", "content": user_input}], max_new_tokens=512, return_full_text=False
33
  )[0]["generated_text"]
34
 
35
  # Append to chat history
 
29
 
30
  response = generator(
31
  [{"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."},
32
+ {"role": "user", "content": user_input}], max_new_tokens=128, return_full_text=True
33
  )[0]["generated_text"]
34
 
35
  # Append to chat history