Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -211,8 +211,8 @@ def load_data():
|
|
211 |
"""
|
212 |
inputs, targets = [], []
|
213 |
for i in range(len(examples['question'])):
|
214 |
-
|
215 |
-
|
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)
|