aka7774 commited on
Commit
02ad52c
1 Parent(s): 5127927

Update fn.py

Browse files
Files changed (1) hide show
  1. fn.py +1 -1
fn.py CHANGED
@@ -216,6 +216,6 @@ def infer(message, history = [], instruction = None, conversation_id = 'gradio',
216
  def numel(message, history = [], instruction = None, conversation_id = 'gradio', args = {}):
217
  global tokenizer, chat_messages
218
 
219
- tokenized_chat = tokenize(message, history, instruction, conversation_id, args).to(device)
220
 
221
  return torch.numel(tokenized_chat)
 
216
  def numel(message, history = [], instruction = None, conversation_id = 'gradio', args = {}):
217
  global tokenizer, chat_messages
218
 
219
+ tokenized_chat = tokenize(message, history, instruction, conversation_id, args)
220
 
221
  return torch.numel(tokenized_chat)