Update Welcome.py
Browse files- Welcome.py +4 -3
Welcome.py
CHANGED
@@ -88,14 +88,15 @@ if f is not None:
|
|
88 |
sign_json=pd.read_json("sign_to_prediction_index_map.json",typ='series')
|
89 |
sign_df=pd.DataFrame(sign_json)
|
90 |
pred=sign_df.iloc[sign]
|
91 |
-
st.write(
|
92 |
top_indices = np.argsort(output['outputs'])[::-1][:5]
|
93 |
top_values = output['outputs'][top_indices]
|
94 |
|
95 |
output_df = sign_df.iloc[top_indices]
|
96 |
output_df['Value'] = top_values
|
97 |
-
|
98 |
-
|
|
|
99 |
st.write(output_df)
|
100 |
# callbacks : on_change, on_click
|
101 |
# com.iframe("https://embed.lottiefiles.com/animation/132349")
|
|
|
88 |
sign_json=pd.read_json("sign_to_prediction_index_map.json",typ='series')
|
89 |
sign_df=pd.DataFrame(sign_json)
|
90 |
pred=sign_df.iloc[sign]
|
91 |
+
st.write(pred)
|
92 |
top_indices = np.argsort(output['outputs'])[::-1][:5]
|
93 |
top_values = output['outputs'][top_indices]
|
94 |
|
95 |
output_df = sign_df.iloc[top_indices]
|
96 |
output_df['Value'] = top_values
|
97 |
+
|
98 |
+
output_df.rename(columns = {0:'Index'}, inplace = True)
|
99 |
+
output_df.drop(['Index'],1, inplace=True)
|
100 |
st.write(output_df)
|
101 |
# callbacks : on_change, on_click
|
102 |
# com.iframe("https://embed.lottiefiles.com/animation/132349")
|