ShAnSantosh commited on
Commit
a2afc78
1 Parent(s): fa9404a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ model.load_state_dict(model_state)
33
  model.eval()
34
  #test
35
  def predict(sentence, history):
36
- history = history
37
  """
38
  # tokenize the new input sentence
39
  new_user_input_ids = tokenizer.encode(input + tokenizer.eos_token, return_tensors='pt')
 
33
  model.eval()
34
  #test
35
  def predict(sentence, history):
36
+ history = history or []
37
  """
38
  # tokenize the new input sentence
39
  new_user_input_ids = tokenizer.encode(input + tokenizer.eos_token, return_tensors='pt')