ejschwartz commited on
Commit
09eccc9
·
verified ·
1 Parent(s): 34b9836

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def predict_identifier(code):
59
  code should be like: "unsigned __int8 *__cdecl <func>(int *<var_0>,...){ return <func_1>(1);}"
60
  '''
61
  input = tokenizer('identifier_predict: '+code, return_tensors='pt', max_length=max_input_length, truncation=True)
62
- output = model.generate(**input)[0]
63
  return tokenizer.decode(output)
64
 
65
  # Create the Gradio interface for predicting identifiers
 
59
  code should be like: "unsigned __int8 *__cdecl <func>(int *<var_0>,...){ return <func_1>(1);}"
60
  '''
61
  input = tokenizer('identifier_predict: '+code, return_tensors='pt', max_length=max_input_length, truncation=True)
62
+ output = model.generate(**input, max_new_tokens=10000)[0]
63
  return tokenizer.decode(output)
64
 
65
  # Create the Gradio interface for predicting identifiers