Spaces:
Runtime error
Runtime error
Duy-Anh Dang
commited on
Commit
·
0697e5d
1
Parent(s):
184bc4e
white spaced generate
Browse files
app.py
CHANGED
@@ -137,9 +137,7 @@ with stats_col4:
|
|
137 |
st.caption("Industry: Email")
|
138 |
#st.metric(label="Industry", value="Email")
|
139 |
|
140 |
-
|
141 |
-
|
142 |
-
with coluno:
|
143 |
input_text = st.text_area("Please enter your email text here: ", height=50)
|
144 |
|
145 |
with st.expander('Please select your parameters: '):
|
@@ -215,12 +213,17 @@ with coluno:
|
|
215 |
|
216 |
Loxz_recom_box = st.checkbox('Select Loxz Recommended Tones for Optimal Output')
|
217 |
|
|
|
|
|
|
|
|
|
218 |
if st.button('Generate Predictions'):
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
|
|
224 |
placeholder = st.empty()
|
225 |
placeholder.text('Loading Data...')
|
226 |
|
@@ -281,6 +284,6 @@ with coluno:
|
|
281 |
st.plotly_chart(fig2, use_container_width=True)
|
282 |
#FunctionsModelSA_V1.corrections(best_target_tones,test_predictions))
|
283 |
|
284 |
-
|
|
|
285 |
|
286 |
-
WHITE_SPACE(10)
|
|
|
137 |
st.caption("Industry: Email")
|
138 |
#st.metric(label="Industry", value="Email")
|
139 |
|
140 |
+
with st.empty().container():
|
|
|
|
|
141 |
input_text = st.text_area("Please enter your email text here: ", height=50)
|
142 |
|
143 |
with st.expander('Please select your parameters: '):
|
|
|
213 |
|
214 |
Loxz_recom_box = st.checkbox('Select Loxz Recommended Tones for Optimal Output')
|
215 |
|
216 |
+
chart_position = st.empty()
|
217 |
+
with chart_position.container():
|
218 |
+
WHITE_SPACE(10)
|
219 |
+
|
220 |
if st.button('Generate Predictions'):
|
221 |
+
#with st.empty.container():
|
222 |
+
with chart_position.container():
|
223 |
+
start_time = time.time()
|
224 |
+
if input_text == "":
|
225 |
+
st.error('Please enter a sentence!')
|
226 |
+
else:
|
227 |
placeholder = st.empty()
|
228 |
placeholder.text('Loading Data...')
|
229 |
|
|
|
284 |
st.plotly_chart(fig2, use_container_width=True)
|
285 |
#FunctionsModelSA_V1.corrections(best_target_tones,test_predictions))
|
286 |
|
287 |
+
placeholder.empty()
|
288 |
+
|
289 |
|
|