Spaces:
Runtime error
Runtime error
jaifar530 commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -179,9 +179,10 @@ def check_and_download_files():
|
|
| 179 |
missing_files.append(file_name)
|
| 180 |
|
| 181 |
if missing_files:
|
| 182 |
-
st.write("The following files are missing:")
|
| 183 |
-
|
| 184 |
-
|
|
|
|
| 185 |
|
| 186 |
# if not has_internet_connection():
|
| 187 |
# st.write("No internet connection. Cannot download missing files.")
|
|
@@ -320,8 +321,10 @@ if press_me_button:
|
|
| 320 |
st.write(f"Ridge: {ridge_name}")
|
| 321 |
st.write(f"ExtraTree: {extra_trees_name}")
|
| 322 |
st.write(f"CNN: {cnn_name}")
|
|
|
|
|
|
|
| 323 |
for author, prob in sorted_probabilities:
|
| 324 |
-
display_name = author_map.get(author, author)
|
| 325 |
st.write(f"{display_name}: {prob * 100:.2f}%")
|
| 326 |
st.progress(float(prob))
|
| 327 |
|
|
|
|
| 179 |
missing_files.append(file_name)
|
| 180 |
|
| 181 |
if missing_files:
|
| 182 |
+
#st.write("The following files are missing:")
|
| 183 |
+
st.write("Some files are missing")
|
| 184 |
+
# for file_name in missing_files:
|
| 185 |
+
# st.write(file_name)
|
| 186 |
|
| 187 |
# if not has_internet_connection():
|
| 188 |
# st.write("No internet connection. Cannot download missing files.")
|
|
|
|
| 321 |
st.write(f"Ridge: {ridge_name}")
|
| 322 |
st.write(f"ExtraTree: {extra_trees_name}")
|
| 323 |
st.write(f"CNN: {cnn_name}")
|
| 324 |
+
st.write("_" * 10)
|
| 325 |
+
st.write("CNN Prediction Probabilities:")
|
| 326 |
for author, prob in sorted_probabilities:
|
| 327 |
+
display_name = author_map.get(author, author)
|
| 328 |
st.write(f"{display_name}: {prob * 100:.2f}%")
|
| 329 |
st.progress(float(prob))
|
| 330 |
|