teaevo commited on
Commit
8a4fd9e
·
1 Parent(s): 9d6743e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ table = pd.DataFrame.from_dict(data)
37
  def predict(input, history=[]):
38
 
39
  # Check if the user input is a question
40
- is_question = "?" in user_message
41
 
42
  # tokenize the new input sentence
43
  new_user_input_ids = tokenizer.encode(input + tokenizer.eos_token, return_tensors='pt')
 
37
  def predict(input, history=[]):
38
 
39
  # Check if the user input is a question
40
+ is_question = "?" in input
41
 
42
  # tokenize the new input sentence
43
  new_user_input_ids = tokenizer.encode(input + tokenizer.eos_token, return_tensors='pt')