chansung commited on
Commit
3777a20
1 Parent(s): 8b86a0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=None#init.hf_access_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=None#init.hf_access_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