MCK-02 commited on
Commit
f12d18c
·
1 Parent(s): a6cbf17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,8 +211,8 @@ def load_data():
211
  """
212
  inputs, targets = [], []
213
  for i in range(len(examples['question'])):
214
- inputs.append(f"Antwort: {examples['provided_answer'][i]} Lösung: {examples['reference_answer'][i]} Frage: {examples['question'][i]}")
215
- targets.append(f"{examples['verification_feedback'][i]} Feedback: {examples['answer_feedback'][i]}")
216
 
217
  # apply tokenization to inputs and labels
218
  model_inputs = tokenizer(inputs, max_length=MAX_INPUT_LENGTH, padding='max_length', truncation=True)
 
211
  """
212
  inputs, targets = [], []
213
  for i in range(len(examples['question'])):
214
+ inputs.append(f"Antwort: {examples['provided_answer'][i]} Lösung: {examples['reference_answer'][i]} Frage: {examples['question'][i]}")
215
+ targets.append(f"{examples['verification_feedback'][i]} Feedback: {examples['answer_feedback'][i]}")
216
 
217
  # apply tokenization to inputs and labels
218
  model_inputs = tokenizer(inputs, max_length=MAX_INPUT_LENGTH, padding='max_length', truncation=True)