vpcom commited on
Commit
63a8456
·
1 Parent(s): 4863816

fix: global states

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,8 +81,8 @@ def format_prompt(message, history, system_prompt):
81
  def generate(
82
  prompt, history, system_prompt, temperature=0.9, max_new_tokens=100, top_p=0.95, repetition_penalty=1.0, seed=42,
83
  ):
84
- HISTORY = history
85
- PROMPT = prompt
86
 
87
  temperature = float(temperature)
88
  if temperature < 1e-2:
 
81
  def generate(
82
  prompt, history, system_prompt, temperature=0.9, max_new_tokens=100, top_p=0.95, repetition_penalty=1.0, seed=42,
83
  ):
84
+ global HISTORY = history
85
+ global PROMPT = prompt
86
 
87
  temperature = float(temperature)
88
  if temperature < 1e-2: