Update app.py
Browse files
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
|
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')
|