Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
•
38a5e5e
1
Parent(s):
d0b135c
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 📈
|
4 |
colorFrom: green
|
5 |
colorTo: green
|
@@ -9,7 +9,7 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
models:
|
12 |
-
- yuntian-deng/
|
13 |
---
|
14 |
|
15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: Implicit CoT Grade School Math Solver
|
3 |
emoji: 📈
|
4 |
colorFrom: green
|
5 |
colorTo: green
|
|
|
9 |
pinned: false
|
10 |
license: mit
|
11 |
models:
|
12 |
+
- yuntian-deng/implicit-cot-math-mistral7b
|
13 |
---
|
14 |
|
15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -25,7 +25,7 @@ def predict_answer(question):
|
|
25 |
do_sample=False)
|
26 |
print (outputs)
|
27 |
|
28 |
-
prediction = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
29 |
|
30 |
return prediction
|
31 |
|
|
|
25 |
do_sample=False)
|
26 |
print (outputs)
|
27 |
|
28 |
+
prediction = tokenizer.decode(outputs[0, input_ids.shape[-1]:], skip_special_tokens=True)
|
29 |
|
30 |
return prediction
|
31 |
|