Spaces:
Runtime error
Runtime error
Update app.py
Browse files10 unmodified lines111213141415161710 unmodified lines prompt = "context: {} answer: {}".format(sentence,answer) print (prompt) max_len = 256 encoding = tknizer.encode_plus(text,max_length=max_len, pad_to_max_length=False,truncation=True, return_tensors="pt") encoding = tknizer.encode_plus(prompt,max_length=max_len, pad_to_max_length=False,truncation=True, return_tensors="pt")
input_ids, attention_mask = encoding["input_ids"], encoding["attention_mask"]
app.py+1-1