Spaces:
Runtime error
Runtime error
fix: correct the syntax
Browse files
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
|
85 |
-
|
|
|
|
|
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:
|