Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def generate(
|
|
50 |
if temperature < 1e-2:
|
51 |
temperature = 1e-2
|
52 |
top_p = float(top_p)
|
53 |
-
|
54 |
generate_kwargs = dict(
|
55 |
temperature=temperature,
|
56 |
max_new_tokens=max_new_tokens,
|
@@ -60,7 +60,7 @@ def generate(
|
|
60 |
do_sample=True,
|
61 |
seed=seed,
|
62 |
)
|
63 |
-
|
64 |
formatted_prompt = format_prompt(prompt, history, system_prompt)
|
65 |
|
66 |
try:
|
|
|
50 |
if temperature < 1e-2:
|
51 |
temperature = 1e-2
|
52 |
top_p = float(top_p)
|
53 |
+
global seed
|
54 |
generate_kwargs = dict(
|
55 |
temperature=temperature,
|
56 |
max_new_tokens=max_new_tokens,
|
|
|
60 |
do_sample=True,
|
61 |
seed=seed,
|
62 |
)
|
63 |
+
seed = seed + 1
|
64 |
formatted_prompt = format_prompt(prompt, history, system_prompt)
|
65 |
|
66 |
try:
|