aftersix
commited on
Commit
·
d01ffc0
1
Parent(s):
cd9aef5
fixed some grammar
Browse files
app.py
CHANGED
@@ -123,13 +123,15 @@ def main():
|
|
123 |
sequence = details[x]
|
124 |
print(details[x])
|
125 |
output = classifier(sequence, sequence_labels)
|
|
|
126 |
rowCategory = str(x)+output['labels'][0]
|
127 |
print(rowCategory)
|
|
|
128 |
for ind in resourceList.index:
|
129 |
if resourceList["no"][ind].astype(str) + resourceList["category"][ind] == rowCategory:
|
130 |
showResource = resourceList["link"][ind]
|
131 |
print(resourceList["link"][ind])
|
132 |
-
st.markdown("For this skill, your child's auditory skill level is: " + str(output['labels'][0]) + ", the best resource to use to work on your child's language development is: " +
|
133 |
x=x+1
|
134 |
|
135 |
#run main
|
|
|
123 |
sequence = details[x]
|
124 |
print(details[x])
|
125 |
output = classifier(sequence, sequence_labels)
|
126 |
+
#get row category for lookup in resources.csv
|
127 |
rowCategory = str(x)+output['labels'][0]
|
128 |
print(rowCategory)
|
129 |
+
#look up resources list in csv file
|
130 |
for ind in resourceList.index:
|
131 |
if resourceList["no"][ind].astype(str) + resourceList["category"][ind] == rowCategory:
|
132 |
showResource = resourceList["link"][ind]
|
133 |
print(resourceList["link"][ind])
|
134 |
+
st.markdown("For this skill, your child's auditory skill level is: " + str(output['labels'][0]) + ", the best resource to use to work on your child's language development is: " + showResource)
|
135 |
x=x+1
|
136 |
|
137 |
#run main
|