Morris commited on
Commit
9b8b3e0
·
1 Parent(s): be55a88

update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  pipe = pipeline('text-classification', model='tiedaar/short-answer-classification')
5
 
6
  subsections = pd.read_csv('subsections.csv')
7
- st.markdown('![headerphoto](./learlabaialoe.JPG)')
8
  st.title('Short Answer Scoring Demo')
9
  st.write('This is a demonstration of the iTELL short answer scoring model.')
10
  st.write('You will be provided with a random passage from a book on Macroeconomics and a question.')
@@ -12,17 +12,18 @@ st.write('Please provide a short answer to the question.')
12
 
13
  ind = st.slider('Use this slider to choose your subsection.', min_value=0, max_value=len(subsections))
14
 
15
- passage = subsections.iloc[ind]['clean_text']
16
- question = subsections.iloc[ind]['question']
17
- answer = subsections.iloc[ind]['answer']
18
- st.markdown('---')
19
- st.header('Passage')
20
- st.write(passage)
21
- st.markdown('---')
22
- st.header('Question')
23
- st.write(question)
24
 
25
  if ind:
 
 
 
 
 
 
 
 
 
26
  student_answer = st.text_input("write your answer")
27
 
28
  if student_answer:
 
4
  pipe = pipeline('text-classification', model='tiedaar/short-answer-classification')
5
 
6
  subsections = pd.read_csv('subsections.csv')
7
+ st.markdown("![headerphoto]('./learlabaialoe.JPG')")
8
  st.title('Short Answer Scoring Demo')
9
  st.write('This is a demonstration of the iTELL short answer scoring model.')
10
  st.write('You will be provided with a random passage from a book on Macroeconomics and a question.')
 
12
 
13
  ind = st.slider('Use this slider to choose your subsection.', min_value=0, max_value=len(subsections))
14
 
15
+
 
 
 
 
 
 
 
 
16
 
17
  if ind:
18
+ passage = subsections.iloc[ind]['clean_text']
19
+ question = subsections.iloc[ind]['question']
20
+ answer = subsections.iloc[ind]['answer']
21
+ st.markdown('---')
22
+ st.header('Passage')
23
+ st.write(passage)
24
+ st.markdown('---')
25
+ st.header('Question')
26
+ st.write(question)
27
  student_answer = st.text_input("write your answer")
28
 
29
  if student_answer: