Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
·
137d14f
1
Parent(s):
15cb83f
app.py
CHANGED
|
@@ -26,7 +26,6 @@ def predict_answer(question):
|
|
| 26 |
|
| 27 |
return prediction
|
| 28 |
|
| 29 |
-
color_map = {"correct": "green", "wrong": "red"}
|
| 30 |
|
| 31 |
demo = gr.Interface(
|
| 32 |
fn=predict_answer,
|
|
@@ -34,7 +33,7 @@ demo = gr.Interface(
|
|
| 34 |
gr.Textbox(label='Question', value='A set of 7 spoons costs $21. If each spoon would be sold separately, how much would 5 spoons cost?'),
|
| 35 |
],
|
| 36 |
outputs=[
|
| 37 |
-
gr.
|
| 38 |
],
|
| 39 |
title='Solving Grade School Math Problems with Implicit CoT',
|
| 40 |
description='This demo showcases Mistral-7B\'s ability to solve grade school math problems without producing intermediate steps, using our stepwise internalization method.',
|
|
|
|
| 26 |
|
| 27 |
return prediction
|
| 28 |
|
|
|
|
| 29 |
|
| 30 |
demo = gr.Interface(
|
| 31 |
fn=predict_answer,
|
|
|
|
| 33 |
gr.Textbox(label='Question', value='A set of 7 spoons costs $21. If each spoon would be sold separately, how much would 5 spoons cost?'),
|
| 34 |
],
|
| 35 |
outputs=[
|
| 36 |
+
gr.Textbox(label='Implicit CoT Prediction'),
|
| 37 |
],
|
| 38 |
title='Solving Grade School Math Problems with Implicit CoT',
|
| 39 |
description='This demo showcases Mistral-7B\'s ability to solve grade school math problems without producing intermediate steps, using our stepwise internalization method.',
|