Morris
commited on
Commit
·
1a9e7d4
1
Parent(s):
4c02659
update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,10 @@ import pandas as pd
|
|
3 |
from PIL import Image
|
4 |
from transformers import pipeline
|
5 |
pipe = pipeline('text-classification', model='tiedaar/short-answer-classification')
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
subsections = pd.read_csv('subsections.csv')
|
9 |
|
@@ -34,9 +37,7 @@ if st.session_state.ind:
|
|
34 |
elif res == 'incorrect_answer':
|
35 |
st.write('Nope, you said', student_answer)
|
36 |
st.write('A better answer would have been', answer)
|
|
|
|
|
37 |
|
38 |
-
def reset():
|
39 |
-
st.session_state.ind = False
|
40 |
-
st.session_state.student_answer = False
|
41 |
|
42 |
-
st.button('Reset', on_click=reset)
|
|
|
3 |
from PIL import Image
|
4 |
from transformers import pipeline
|
5 |
pipe = pipeline('text-classification', model='tiedaar/short-answer-classification')
|
6 |
+
|
7 |
+
def reset():
|
8 |
+
st.session_state.ind = False
|
9 |
+
st.session_state.student_answer = False
|
10 |
|
11 |
subsections = pd.read_csv('subsections.csv')
|
12 |
|
|
|
37 |
elif res == 'incorrect_answer':
|
38 |
st.write('Nope, you said', student_answer)
|
39 |
st.write('A better answer would have been', answer)
|
40 |
+
st.button('Reset', on_click=reset)
|
41 |
+
|
42 |
|
|
|
|
|
|
|
43 |
|
|