Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,6 @@ if button:
|
|
46 |
prob_strings = [(str(prob) + '%') for prob in np.round(probs * 100, 3)]
|
47 |
micro_df = pd.DataFrame({'Categories': CATEGORIES, 'Cat. Probability': prob_strings, 'sort_probs': probs})
|
48 |
micro_df = micro_df.sort_values(by='sort_probs', ascending=False)
|
49 |
-
micro_df = micro_df[['Categories', 'Cat.Probability']]
|
50 |
micro_df.index.name = 'Internal ID'
|
51 |
st.write(micro_df)
|
|
|
46 |
prob_strings = [(str(prob) + '%') for prob in np.round(probs * 100, 3)]
|
47 |
micro_df = pd.DataFrame({'Categories': CATEGORIES, 'Cat. Probability': prob_strings, 'sort_probs': probs})
|
48 |
micro_df = micro_df.sort_values(by='sort_probs', ascending=False)
|
49 |
+
micro_df = micro_df[['Categories', 'Cat. Probability']]
|
50 |
micro_df.index.name = 'Internal ID'
|
51 |
st.write(micro_df)
|