Spaces:
Runtime error
Runtime error
Update app.py
Browse files10 unmodified lines1112131415161710 unmodified linesprompt = "context: {} answer: {}".format(sentence,answer)print (prompt)max_len = 256encoding = tknizer.encode_plus(text,max_length=max_len, pad_to_max_length=False,truncation=True, return_tensors="pt")input_ids, attention_mask = encoding["input_ids"], encoding["attention_mask"]10 unmodified lines1112131415161710 unmodified linesprompt = "context: {} answer: {}".format(sentence,answer)print (prompt)max_len = 256encoding = 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