jaifar530 commited on
Commit
91a8314
·
unverified ·
1 Parent(s): 0ac2f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -372,29 +372,35 @@ if press_me_button:
372
 
373
  if ridge_prediction == extra_trees_prediction == predicted_author:
374
  st.success(f"Most likely written by: {ridge_name}", icon="✅")
 
375
  st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
376
 
377
  elif ridge_prediction == extra_trees_prediction:
378
  st.success(f"Most likely written by: {ridge_name}", icon="✅")
379
  st.success(f"2nd Most likely written by: {cnn_name}", icon="✅")
 
380
  st.warning(f"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.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
386
 
387
  elif ridge_prediction == predicted_author:
388
  st.success(f"Most likely written by: {ridge_name}", icon="✅")
389
  st.success(f"2nd Most likely written by: {extra_trees_name}", icon="✅")
 
390
  st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
391
 
392
 
393
  else:
394
- st.write("Difficult to predict this text, \nit might fill into one of the below:")
395
- st.write(f"1- {ridge_name}")
396
- st.write(f"2- {cnn_name}")
397
- st.write(f"3- {extra_trees_name}")
 
 
398
 
399
  # with st.expander("What is this project about?"):
400
  # st.write("""
 
372
 
373
  if ridge_prediction == extra_trees_prediction == predicted_author:
374
  st.success(f"Most likely written by: {ridge_name}", icon="✅")
375
+ st.write("_" * 30)
376
  st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
377
 
378
  elif ridge_prediction == extra_trees_prediction:
379
  st.success(f"Most likely written by: {ridge_name}", icon="✅")
380
  st.success(f"2nd Most likely written by: {cnn_name}", icon="✅")
381
+ st.write("_" * 30)
382
  st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
383
 
384
  elif extra_trees_prediction == predicted_author:
385
  st.success(f"Most likely written by: {extra_trees_name}", icon="✅")
386
  st.success(f"2nd Most likely written by: {ridge_name}", icon="✅")
387
+ st.write("_" * 30)
388
  st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
389
 
390
  elif ridge_prediction == predicted_author:
391
  st.success(f"Most likely written by: {ridge_name}", icon="✅")
392
  st.success(f"2nd Most likely written by: {extra_trees_name}", icon="✅")
393
+ st.write("_" * 30)
394
  st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
395
 
396
 
397
  else:
398
+ st.warning("Difficult to predict this text, it might fill into one of the below:", icon="⚠️")
399
+ st.success(f"1- {ridge_name}", icon="✅")
400
+ st.success(f"2- {cnn_name}", icon="✅")
401
+ st.success(f"3- {extra_trees_name}", icon="✅")
402
+ st.write("_" * 30)
403
+ st.warning(f"The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
404
 
405
  # with st.expander("What is this project about?"):
406
  # st.write("""