Spaces:
Sleeping
Sleeping
jaifar530
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -370,35 +370,36 @@ if press_me_button:
|
|
370 |
|
371 |
if ridge_prediction == extra_trees_prediction == predicted_author:
|
372 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
|
|
373 |
st.write("_" * 30)
|
374 |
-
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
375 |
|
376 |
elif ridge_prediction == extra_trees_prediction:
|
377 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
378 |
st.success(f"2nd Most likely written by: **{cnn_name}**", icon="✅")
|
379 |
-
st.write("_" * 30)
|
380 |
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
|
|
381 |
|
382 |
elif extra_trees_prediction == predicted_author:
|
383 |
st.success(f"Most likely written by: **{extra_trees_name}**", icon="✅")
|
384 |
st.success(f"2nd Most likely written by: **{ridge_name}**", icon="✅")
|
385 |
-
st.write("_" * 30)
|
386 |
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
387 |
-
|
|
|
388 |
elif ridge_prediction == predicted_author:
|
389 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
390 |
st.success(f"2nd Most likely written by: **{extra_trees_name}**", icon="✅")
|
391 |
-
st.write("_" * 30)
|
392 |
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
|
|
393 |
|
394 |
|
395 |
else:
|
396 |
-
st.warning("Notice 1: There is a difficulity predicting
|
397 |
st.success(f"1- **{ridge_name}**", icon="✅")
|
398 |
st.success(f"2- **{cnn_name}**", icon="✅")
|
399 |
st.success(f"3- **{extra_trees_name}**", icon="✅")
|
400 |
-
st.write("_" * 30)
|
401 |
st.warning(f"**Notice 2:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
|
|
|
|
402 |
|
403 |
# with st.expander("What is this project about?"):
|
404 |
# st.write("""
|
|
|
370 |
|
371 |
if ridge_prediction == extra_trees_prediction == predicted_author:
|
372 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
373 |
+
st.warning(f"**Notice:** Your input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
374 |
st.write("_" * 30)
|
|
|
375 |
|
376 |
elif ridge_prediction == extra_trees_prediction:
|
377 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
378 |
st.success(f"2nd Most likely written by: **{cnn_name}**", icon="✅")
|
|
|
379 |
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
380 |
+
st.write("_" * 30)
|
381 |
|
382 |
elif extra_trees_prediction == predicted_author:
|
383 |
st.success(f"Most likely written by: **{extra_trees_name}**", icon="✅")
|
384 |
st.success(f"2nd Most likely written by: **{ridge_name}**", icon="✅")
|
|
|
385 |
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
386 |
+
st.write("_" * 30)
|
387 |
+
|
388 |
elif ridge_prediction == predicted_author:
|
389 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
390 |
st.success(f"2nd Most likely written by: **{extra_trees_name}**", icon="✅")
|
|
|
391 |
st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
392 |
+
st.write("_" * 30)
|
393 |
|
394 |
|
395 |
else:
|
396 |
+
st.warning("Notice 1: There is a difficulity predicting your text, it might fill into one of the below:", icon="⚠️")
|
397 |
st.success(f"1- **{ridge_name}**", icon="✅")
|
398 |
st.success(f"2- **{cnn_name}**", icon="✅")
|
399 |
st.success(f"3- **{extra_trees_name}**", icon="✅")
|
|
|
400 |
st.warning(f"**Notice 2:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
401 |
+
st.write("_" * 30)
|
402 |
+
|
403 |
|
404 |
# with st.expander("What is this project about?"):
|
405 |
# st.write("""
|