Spaces:
Sleeping
Sleeping
DataRaptor
commited on
Commit
•
a23c872
1
Parent(s):
e7304bc
Upload app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def app():
|
|
129 |
|
130 |
res = infer(image)
|
131 |
prob = res.numpy()
|
132 |
-
idx = np.argpartition(prob, -
|
133 |
right_column.markdown('#### Results')
|
134 |
|
135 |
idx = list(idx)
|
@@ -147,4 +147,4 @@ def app():
|
|
147 |
st.markdown("Built by [Shamim Ahamed](https://www.shamimahamed.com/). Data provided by [aiplanet](https://aiplanet.com/challenges/data-sprint-76-human-activity-recognition/233/overview/about)")
|
148 |
|
149 |
|
150 |
-
app()
|
|
|
129 |
|
130 |
res = infer(image)
|
131 |
prob = res.numpy()
|
132 |
+
idx = np.argpartition(prob, -4)[-4:]
|
133 |
right_column.markdown('#### Results')
|
134 |
|
135 |
idx = list(idx)
|
|
|
147 |
st.markdown("Built by [Shamim Ahamed](https://www.shamimahamed.com/). Data provided by [aiplanet](https://aiplanet.com/challenges/data-sprint-76-human-activity-recognition/233/overview/about)")
|
148 |
|
149 |
|
150 |
+
app()
|