Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ evaluation_instruction = (f"Here's a question: {question_string}. "
|
|
| 33 |
|
| 34 |
# TextLoss is a natural-language specified loss function that describes
|
| 35 |
# how we want to evaluate the reasoning.
|
| 36 |
-
loss_fn = tg.TextLoss(evaluation_instruction)
|
| 37 |
|
| 38 |
# Step 3: Do the loss computation, backward pass, and update the punchline.
|
| 39 |
# Exact same syntax as PyTorch!
|
|
|
|
| 33 |
|
| 34 |
# TextLoss is a natural-language specified loss function that describes
|
| 35 |
# how we want to evaluate the reasoning.
|
| 36 |
+
loss_fn = tg.TextLoss(eval_system_prompt = evaluation_instruction)
|
| 37 |
|
| 38 |
# Step 3: Do the loss computation, backward pass, and update the punchline.
|
| 39 |
# Exact same syntax as PyTorch!
|