Spaces:
Runtime error
Runtime error
jaifar530
commited on
Update app.py
Browse files
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 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 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
|