Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -161,7 +161,7 @@ with col_right:
|
|
| 161 |
with tab1:
|
| 162 |
with st.container(height=300):
|
| 163 |
fw = fusion_weights[0].cpu().numpy()
|
| 164 |
-
fig, ax = plt.subplots(figsize=(
|
| 165 |
labels = ['Tabular', 'Image']
|
| 166 |
values = [fw[1], fw[0]]
|
| 167 |
ax.barh(labels, values)
|
|
@@ -182,7 +182,7 @@ with col_right:
|
|
| 182 |
inv_map = {v: k for k, v in class_map.items()}
|
| 183 |
p_labels = [inv_map[i] for i in range(len(p_vals))]
|
| 184 |
|
| 185 |
-
fig2, ax2 = plt.subplots(figsize=(
|
| 186 |
ax2.bar(p_labels, p_vals)
|
| 187 |
ax2.set_ylim(0, 1)
|
| 188 |
ax2.set_ylabel("Probability")
|
|
|
|
| 161 |
with tab1:
|
| 162 |
with st.container(height=300):
|
| 163 |
fw = fusion_weights[0].cpu().numpy()
|
| 164 |
+
fig, ax = plt.subplots(figsize=(13.5, 2.4))
|
| 165 |
labels = ['Tabular', 'Image']
|
| 166 |
values = [fw[1], fw[0]]
|
| 167 |
ax.barh(labels, values)
|
|
|
|
| 182 |
inv_map = {v: k for k, v in class_map.items()}
|
| 183 |
p_labels = [inv_map[i] for i in range(len(p_vals))]
|
| 184 |
|
| 185 |
+
fig2, ax2 = plt.subplots(figsize=(11.5, 1.4))
|
| 186 |
ax2.bar(p_labels, p_vals)
|
| 187 |
ax2.set_ylim(0, 1)
|
| 188 |
ax2.set_ylabel("Probability")
|