Spaces:
Runtime error
Runtime error
Update fn.py
Browse files
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)
|
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)
|