jaifar530 commited on
Commit
b683e77
·
unverified ·
1 Parent(s): c8203de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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
- for file_name in missing_files:
184
- st.write(file_name)
 
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) # Retrieve the display name, fall back to original if not found
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