Erik commited on
Commit
f71f635
·
verified ·
1 Parent(s): 10eee57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def initial_message(system_prompt, top_k, top_p, rep_pen, temperature):
86
  # Create a chat history with just the system prompt and a minimal user message
87
  chat_history = [
88
  {"role": "system", "content": enhanced_prompt},
89
- {"role": "user", "content": "Hola profesora cachonda"} # Minimal prompt to start conversation
90
  ]
91
 
92
  # Apply chat template
@@ -101,7 +101,7 @@ def initial_message(system_prompt, top_k, top_p, rep_pen, temperature):
101
  do_sample=True,
102
  top_p=top_p,
103
  top_k=top_k,
104
- temperature=temperature + 0.1, # Slightly higher for a more engaging opening
105
  eos_token_id=tokenizer.eos_token_id
106
  )
107
 
 
86
  # Create a chat history with just the system prompt and a minimal user message
87
  chat_history = [
88
  {"role": "system", "content": enhanced_prompt},
89
+ {"role": "user", "content": "Hola"} # Minimal prompt to start conversation
90
  ]
91
 
92
  # Apply chat template
 
101
  do_sample=True,
102
  top_p=top_p,
103
  top_k=top_k,
104
+ temperature=temperature - 0.1, # Slightly higher for a more engaging opening
105
  eos_token_id=tokenizer.eos_token_id
106
  )
107