Spaces:
Sleeping
Sleeping
Update app.py
Browse files20 unmodified lines2122232425262728293031323334353645 unmodified lines82838485868720 unmodified linesuploaded_file = st.sidebar.file_uploader("Choose an image...", type=["jpg", "png", "jpeg", "tif"])# Sidebar Messagest.sidebar.markdown("""### ℹ️ About This AppThis is the **first version** of DetectNano, limited to the detection of polymersomes.📌 **Citation:**If you use this tool, please cite:**Zenodo DOI:** [https://doi.org/10.5281/zenodo.14995364](https://doi.org/10.5281/zenodo.14995364)""")# Add sliders to adjust parameters and a button to reset themdefault_iou_thr = 0.8default_sigma = 0.445 unmodified linesdef infer_model(model, img_path):return model(img_path, save=True)if uploaded_file is not None:# Read the uploaded imageimage = np.array(Image.open(uploaded_file))20 unmodified lines21222324252645 unmodified lines72737475767778798081828384858687888990919220 unmodified linesuploaded_file = st.sidebar.file_uploader("Choose an image...", type=["jpg", "png", "jpeg", "tif"])# Add sliders to adjust parameters and a button to reset themdefault_iou_thr = 0.8default_sigma = 0.445 unmodified linesdef infer_model(model, img_path):return model(img_path, save=True)# Sidebar Messagest.sidebar.markdown("""### ℹ️ About This AppThis is the **first version - March 2025** of DetectNano, designed for the detection of polymersomes.⚠ **Disclaimer:**Due to the **limited and specific dataset used during training**, some detection errors may occur.A **more robust version** with improved accuracy and extended capabilities will be released **in the near future**.📌 **Citation:**If you use this tool, please cite:**Zenodo DOI:** [https://doi.org/10.5281/zenodo.14995364](https://doi.org/10.5281/zenodo.14995364)""")if uploaded_file is not None:# Read the uploaded imageimage = np.array(Image.open(uploaded_file))
app.py+15-10