Spaces:
Runtime error
Runtime error
jaifar530
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -320,7 +320,7 @@ 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 |
-
with st.expander("
|
| 324 |
st.write(f"Ridge: {ridge_name}")
|
| 325 |
st.write(f"ExtraTree: {extra_trees_name}")
|
| 326 |
st.write(f"CNN: {cnn_name}")
|
|
@@ -372,7 +372,11 @@ if press_me_button:
|
|
| 372 |
|
| 373 |
# Get disply name
|
| 374 |
cnn_name, ridge_name, extra_trees_name = get_author_display_name(predicted_author, ridge_prediction, extra_trees_prediction)
|
| 375 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
if ridge_prediction == extra_trees_prediction == predicted_author:
|
| 377 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
| 378 |
st.warning(f"**Notice:** Your input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|
|
|
|
| 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("First iteration Details..."):
|
| 324 |
st.write(f"Ridge: {ridge_name}")
|
| 325 |
st.write(f"ExtraTree: {extra_trees_name}")
|
| 326 |
st.write(f"CNN: {cnn_name}")
|
|
|
|
| 372 |
|
| 373 |
# Get disply name
|
| 374 |
cnn_name, ridge_name, extra_trees_name = get_author_display_name(predicted_author, ridge_prediction, extra_trees_prediction)
|
| 375 |
+
with st.expander("First iteration Details..."):
|
| 376 |
+
st.write(f"Ridge: {ridge_name}")
|
| 377 |
+
st.write(f"ExtraTree: {extra_trees_name}")
|
| 378 |
+
st.write(f"CNN: {cnn_name}")
|
| 379 |
+
|
| 380 |
if ridge_prediction == extra_trees_prediction == predicted_author:
|
| 381 |
st.success(f"Most likely written by: **{ridge_name}**", icon="✅")
|
| 382 |
st.warning(f"**Notice:** Your input text has been magnified {amplify} times to better capture its characteristics and patterns.", icon="⚠️")
|