Upload app.py
Browse files
app.py
CHANGED
@@ -171,8 +171,8 @@ if submitted:
|
|
171 |
color="black"
|
172 |
),
|
173 |
autosize=False,
|
174 |
-
width=
|
175 |
-
height=
|
176 |
xaxis_title="Likelihood of SubCatName",
|
177 |
yaxis_title="SubCatNames",
|
178 |
# legend_title="Topics"
|
@@ -190,7 +190,7 @@ if submitted:
|
|
190 |
predicted_1 = st.metric("Predicted SubCatName", sorted_preds_1[0][0])
|
191 |
Prediction_confidence_1 = st.metric("Prediction confidence", (str(round(sorted_preds_1[0][1]*100, 1))+"%"))
|
192 |
|
193 |
-
st.success("Great! SubCatName successfully predicted. ", icon="β
")
|
194 |
|
195 |
|
196 |
# Second prediction
|
@@ -239,7 +239,7 @@ if submitted:
|
|
239 |
color="black"
|
240 |
),
|
241 |
autosize=False,
|
242 |
-
width=
|
243 |
height=200,
|
244 |
xaxis_title="Likelihood of ExtraOver",
|
245 |
yaxis_title="ExtraOver",
|
@@ -258,7 +258,7 @@ if submitted:
|
|
258 |
predicted_2 = st.metric("Predicted ExtraOver", sorted_preds_2[0][0])
|
259 |
Prediction_confidence_2 = st.metric("Prediction confidence", (str(round(sorted_preds_2[0][1]*100, 1))+"%"))
|
260 |
|
261 |
-
st.success("Great! ExtraOver successfully predicted. ", icon="β
")
|
262 |
|
263 |
|
264 |
|
@@ -308,8 +308,8 @@ if submitted:
|
|
308 |
color="black"
|
309 |
),
|
310 |
autosize=False,
|
311 |
-
width=
|
312 |
-
height=
|
313 |
xaxis_title="Likelihood of Conversion_factor",
|
314 |
yaxis_title="Conversion_factor",
|
315 |
# legend_title="Topics"
|
@@ -328,4 +328,4 @@ if submitted:
|
|
328 |
Prediction_confidence_3 = st.metric("Prediction confidence",
|
329 |
(str(round(sorted_preds_3[0][1] * 100, 1)) + "%"))
|
330 |
|
331 |
-
st.success("Great! Conversion_factor successfully predicted. ", icon="β
")
|
|
|
171 |
color="black"
|
172 |
),
|
173 |
autosize=False,
|
174 |
+
width=500,
|
175 |
+
height=1000,
|
176 |
xaxis_title="Likelihood of SubCatName",
|
177 |
yaxis_title="SubCatNames",
|
178 |
# legend_title="Topics"
|
|
|
190 |
predicted_1 = st.metric("Predicted SubCatName", sorted_preds_1[0][0])
|
191 |
Prediction_confidence_1 = st.metric("Prediction confidence", (str(round(sorted_preds_1[0][1]*100, 1))+"%"))
|
192 |
|
193 |
+
#st.success("Great! SubCatName successfully predicted. ", icon="β
")
|
194 |
|
195 |
|
196 |
# Second prediction
|
|
|
239 |
color="black"
|
240 |
),
|
241 |
autosize=False,
|
242 |
+
width=500,
|
243 |
height=200,
|
244 |
xaxis_title="Likelihood of ExtraOver",
|
245 |
yaxis_title="ExtraOver",
|
|
|
258 |
predicted_2 = st.metric("Predicted ExtraOver", sorted_preds_2[0][0])
|
259 |
Prediction_confidence_2 = st.metric("Prediction confidence", (str(round(sorted_preds_2[0][1]*100, 1))+"%"))
|
260 |
|
261 |
+
#st.success("Great! ExtraOver successfully predicted. ", icon="β
")
|
262 |
|
263 |
|
264 |
|
|
|
308 |
color="black"
|
309 |
),
|
310 |
autosize=False,
|
311 |
+
width=500,
|
312 |
+
height=500,
|
313 |
xaxis_title="Likelihood of Conversion_factor",
|
314 |
yaxis_title="Conversion_factor",
|
315 |
# legend_title="Topics"
|
|
|
328 |
Prediction_confidence_3 = st.metric("Prediction confidence",
|
329 |
(str(round(sorted_preds_3[0][1] * 100, 1)) + "%"))
|
330 |
|
331 |
+
#st.success("Great! Conversion_factor successfully predicted. ", icon="β
")
|