jaifar530 commited on
Commit
fc8a7df
ยท
unverified ยท
1 Parent(s): 89ca2a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -23
app.py CHANGED
@@ -334,30 +334,30 @@ if press_me_button:
334
  st.info("We are quite confident in the accuracy of this result.", icon="โ„น๏ธ")
335
 
336
 
337
- # elif sorted_probabilities[0][0] == 0.1 :
338
- # elif extra_trees_prediction == predicted_author:
339
- # st.success(f"Most likely written by: **{extra_trees_name}**", icon="โœ…")
340
- # st.success(f"2nd Most likely written by: **{ridge_name}**", icon="โœ…")
341
- # st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="โš ๏ธ")
342
- # st.write("_" * 30)
343
- # # rain(
344
- # # emoji="๐Ÿ˜",
345
- # # font_size=54,
346
- # # falling_speed=5,
347
- # # animation_length="infinite",
348
- # # )
349
 
350
- # elif ridge_prediction == predicted_author:
351
- # st.success(f"Most likely written by: **{ridge_name}**", icon="โœ…")
352
- # st.success(f"2nd Most likely written by: **{extra_trees_name}**", icon="โœ…")
353
- # st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="โš ๏ธ")
354
- # st.write("_" * 30)
355
- # # rain(
356
- # # emoji="๐Ÿ˜",
357
- # # font_size=54,
358
- # # falling_speed=5,
359
- # # animation_length="infinite",
360
- # # )
361
 
362
  else:
363
  # Repeat the text with a space at the end of each iteration
 
334
  st.info("We are quite confident in the accuracy of this result.", icon="โ„น๏ธ")
335
 
336
 
337
+ elif sorted_probabilities[0][1] == 0.1 :
338
+ elif extra_trees_prediction == predicted_author:
339
+ st.success(f"Most likely written by: **{extra_trees_name}**", icon="โœ…")
340
+ st.success(f"2nd Most likely written by: **{ridge_name}**", icon="โœ…")
341
+ st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="โš ๏ธ")
342
+ st.write("_" * 30)
343
+ # rain(
344
+ # emoji="๐Ÿ˜",
345
+ # font_size=54,
346
+ # falling_speed=5,
347
+ # animation_length="infinite",
348
+ # )
349
 
350
+ elif ridge_prediction == predicted_author:
351
+ st.success(f"Most likely written by: **{ridge_name}**", icon="โœ…")
352
+ st.success(f"2nd Most likely written by: **{extra_trees_name}**", icon="โœ…")
353
+ st.warning(f"**Notice:** The input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="โš ๏ธ")
354
+ st.write("_" * 30)
355
+ # rain(
356
+ # emoji="๐Ÿ˜",
357
+ # font_size=54,
358
+ # falling_speed=5,
359
+ # animation_length="infinite",
360
+ # )
361
 
362
  else:
363
  # Repeat the text with a space at the end of each iteration