Matchball commited on
Commit
0a7f3f9
·
verified ·
1 Parent(s): 99a4ce3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -1147,16 +1147,7 @@ def main():
1147
  st.text(f"{uploaded_file.name}")
1148
  # Display each reagent issue as a plain text line
1149
  for reagent_error_line in reagent_list:
1150
- match = re.search(r"Mass error:\s*([-+]?\d*\.?\d+)%", reagent_error_line)
1151
- if match:
1152
- error_val = float(match.group(1))
1153
- if abs(error_val) > 10.0:
1154
- st.markdown(f"<span style='color:red'>{reagent_error_line}</span>", unsafe_allow_html=True)
1155
- else:
1156
- st.text(reagent_error_line)
1157
- else:
1158
- st.text(reagent_error_line)
1159
-
1160
 
1161
  # Option to download results (content will be plain text)
1162
  results_download_text = f"{uploaded_file.name}\n" # File name first
@@ -1184,7 +1175,7 @@ def main():
1184
  # Add some helpful information (expander is a UI element, kept for usability)
1185
  with st.expander("ℹ️ How to use this app"):
1186
  st.markdown("""
1187
- 1. **Upload a PDF**: Click the file uploader above or drag and drop a PDF file
1188
  2. **Wait for processing**: The app will analyze your PDF for reagent-related issues
1189
  3. **View results**: Any issues found will be displayed as plain text below
1190
  4. **Download results**: If issues are found, you can download a summary report
 
1147
  st.text(f"{uploaded_file.name}")
1148
  # Display each reagent issue as a plain text line
1149
  for reagent_error_line in reagent_list:
1150
+ st.text(reagent_error_line)
 
 
 
 
 
 
 
 
 
1151
 
1152
  # Option to download results (content will be plain text)
1153
  results_download_text = f"{uploaded_file.name}\n" # File name first
 
1175
  # Add some helpful information (expander is a UI element, kept for usability)
1176
  with st.expander("ℹ️ How to use this app"):
1177
  st.markdown("""
1178
+ 1. **Upload a PDF**: Click the file uploader above or drag and drop a PDF file
1179
  2. **Wait for processing**: The app will analyze your PDF for reagent-related issues
1180
  3. **View results**: Any issues found will be displayed as plain text below
1181
  4. **Download results**: If issues are found, you can download a summary report