Spaces:
Sleeping
Sleeping
jaifar530
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -320,17 +320,16 @@ if press_me_button:
|
|
320 |
# extra_trees_name = author_map.get(extra_trees_prediction[0], extra_trees_prediction[0])
|
321 |
|
322 |
cnn_name, ridge_name, extra_trees_name = get_author_display_name(predicted_author, ridge_prediction, extra_trees_prediction)
|
323 |
-
|
|
|
|
|
|
|
|
|
|
|
324 |
if ridge_prediction == extra_trees_prediction == predicted_author:
|
325 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
326 |
st.info("We are quite confident in the accuracy of this result.", icon="ℹ️")
|
327 |
-
|
328 |
-
# emoji="😃",
|
329 |
-
# font_size=54,
|
330 |
-
# falling_speed=5,
|
331 |
-
# animation_length="infinite",
|
332 |
-
# )
|
333 |
-
|
334 |
else:
|
335 |
# Repeat the text with a space at the end of each iteration
|
336 |
|
|
|
320 |
# extra_trees_name = author_map.get(extra_trees_prediction[0], extra_trees_prediction[0])
|
321 |
|
322 |
cnn_name, ridge_name, extra_trees_name = get_author_display_name(predicted_author, ridge_prediction, extra_trees_prediction)
|
323 |
+
with st.expander("Show More Details..."):
|
324 |
+
st.write(f"""
|
325 |
+
Ridge: {ridge_name}
|
326 |
+
ExtraTree: {extra_trees_name}
|
327 |
+
CNN: {cnn_name}
|
328 |
+
""")
|
329 |
if ridge_prediction == extra_trees_prediction == predicted_author:
|
330 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
331 |
st.info("We are quite confident in the accuracy of this result.", icon="ℹ️")
|
332 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
else:
|
334 |
# Repeat the text with a space at the end of each iteration
|
335 |
|