Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ async def conversation(
|
|
40 |
prompt_tpl_path, model_id,
|
41 |
max_input_token_length, max_new_tokens,
|
42 |
temperature, top_p, top_k,
|
43 |
-
repetition_penalty, hf_token=
|
44 |
):
|
45 |
last_message = messages[-1]
|
46 |
last_message[1] = last_message[1] + partial_response
|
@@ -66,7 +66,7 @@ async def regen_conversation(
|
|
66 |
prompt_tpl_path, model_id,
|
67 |
max_input_token_length, max_new_tokens,
|
68 |
temperature, top_p, top_k,
|
69 |
-
repetition_penalty, hf_token=
|
70 |
):
|
71 |
last_message = messages[-1]
|
72 |
last_message[1] = last_message[1] + partial_response
|
|
|
40 |
prompt_tpl_path, model_id,
|
41 |
max_input_token_length, max_new_tokens,
|
42 |
temperature, top_p, top_k,
|
43 |
+
repetition_penalty, hf_token=init.hf_access_token
|
44 |
):
|
45 |
last_message = messages[-1]
|
46 |
last_message[1] = last_message[1] + partial_response
|
|
|
66 |
prompt_tpl_path, model_id,
|
67 |
max_input_token_length, max_new_tokens,
|
68 |
temperature, top_p, top_k,
|
69 |
+
repetition_penalty, hf_token=init.hf_access_token
|
70 |
):
|
71 |
last_message = messages[-1]
|
72 |
last_message[1] = last_message[1] + partial_response
|