Spaces:
Runtime error
Runtime error
Duy-Anh Dang
commited on
Commit
·
82d1fcd
1
Parent(s):
c98b4e5
put output into st.empty
Browse files
app.py
CHANGED
@@ -245,11 +245,12 @@ if st.button('Generate Predictions'):
|
|
245 |
st.plotly_chart(fig1, use_container_width=True)
|
246 |
|
247 |
#if((best_target!=0) and (pred<best_target)):
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
|
|
253 |
fig2 = go.Figure()
|
254 |
fig2.add_trace(go.Bar(
|
255 |
y=tone_labels,
|
@@ -274,7 +275,7 @@ if st.button('Generate Predictions'):
|
|
274 |
fig2.update_layout(title_text=f'The following Changes will yield a {out} increase in {target}')
|
275 |
st.plotly_chart(fig2, use_container_width=True)
|
276 |
#FunctionsModelSA_V1.corrections(best_target_tones,test_predictions))
|
277 |
-
|
278 |
placeholder.empty()
|
279 |
|
280 |
WHITE_SPACE(10)
|
|
|
245 |
st.plotly_chart(fig1, use_container_width=True)
|
246 |
|
247 |
#if((best_target!=0) and (pred<best_target)):
|
248 |
+
with st.empty():
|
249 |
+
if Loxz_recom_box == True:
|
250 |
+
recommended_changes=(best_target_tones)
|
251 |
+
change=best_target-pred
|
252 |
+
#recommend(tones,recommended_changes,change,target)
|
253 |
+
|
254 |
fig2 = go.Figure()
|
255 |
fig2.add_trace(go.Bar(
|
256 |
y=tone_labels,
|
|
|
275 |
fig2.update_layout(title_text=f'The following Changes will yield a {out} increase in {target}')
|
276 |
st.plotly_chart(fig2, use_container_width=True)
|
277 |
#FunctionsModelSA_V1.corrections(best_target_tones,test_predictions))
|
278 |
+
|
279 |
placeholder.empty()
|
280 |
|
281 |
WHITE_SPACE(10)
|