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

fix: correct the syntax

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -81,8 +81,10 @@ 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
- global HISTORY = history
85
- global 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
85
+ HISTORY = history
86
+ global PROMPT
87
+ PROMPT = prompt
88
 
89
  temperature = float(temperature)
90
  if temperature < 1e-2: