Spaces:
Sleeping
Sleeping
Commit History
2 days ago
-
Update dependencies and fix runtime bugs found in audit
Dependencies - Pin Streamlit 1.67.0 and Python 3.12 via README sdk_version/python_version - Update all packages to current releases (pandas 3.1, numpy 2.5, plotly 7.1, PyMuPDF 2.1, Pillow 13, OpenCV 5, reportlab 5.1, google-genai 3.1, firebase-admin 7.7, Document AI 3.17) - Remove unused packages: langchain, langchain-core, langchain-community, langchain-google-genai, langsmith, google-generativeai (deprecated), fpdf2, imageio, python-docx, python-dotenv, pyyaml - Add beautifulsoup4 (used for HTML table parsing) and packages.txt with tesseract-ocr so the Tesseract OCR fallback works on Spaces Streamlit API - Replace deprecated use_container_width=True with width="stretch" (136 calls) - Replace deprecated st.components.v1.html with st.iframe via embed_html helper Bug fixes - CropDrive parent-window listener script had a JS syntax error (doubled braces in a non f-string), so language/config messages were never handled - OCR: missing `io` import broke PDF-to-image conversion…3f62288
-
fix: parse SP Lab OCR from real text and restore Gemini analysis
Mark CuizonRemove hardcoded SP Lab sample values so structured OCR matches raw OCR (including pH). Resolve Gemini API keys from common HF secret names and use valid models with probe verification instead of gemini-3.1 fallback-only runs.5cac7b6
-
fix: restore Hugging Face Space build and startup reliability
Mark Cuizon- Remove spellchecker (no Linux wheel) and unused Streamlit extras that bloated installs - Relax pandas/numpy/PyMuPDF pins for Python 3.10 manylinux compatibility - Delete orphaned dead code in dashboard.py that could break fresh builds - Make Firebase initialization non-fatal so the Space stays running without secrets - Add safe Streamlit secrets helpers and remove import-time st.stop() in upload - Add .streamlit/config.toml and pin Python 3.10 in README metadatac9a0fae
-
feat: add Indonesian (Bahasa Indonesia) language support
Mark Cuizon- Add full 'id' translation dictionary to translations.py with ~300+ keys - Update get_language(), set_language(), toggle_language() to support 'id' - Toggle now cycles en -> ms -> id -> en - Add Indonesian LLM language instruction in analysis_engine.py - Update all language validations in cropdrive_integration.py to include 'id' - Update app.py fallback language checks to include 'id' - AI assistant, analysis results and PDF reports all translate to Indonesian when lang=idb63bb45
-
Fix indentation error in app.py
c637d50 -
Update app.py and translations.py
081ba44 -
Update app.py, results.py, and translations.py
0540f42
-
Fix history page routing - handle multiple LOAD_ANALYSIS message formats and improve URL-based routing
da06b3a -
Fix LOAD_ANALYSIS message handling - inject listener globally and improve data structure processing
267453f -
Implement upload limit enforcement - block upload page access and disable buttons when limit reached
8d42b2b -
Add history page for displaying past analysis results from CropDrive website
4287aaf
-
Update app.py, results.py, pdf_utils.py, and translations.py
2f19080 -
Fix duplicate error messages in Malaysian language
- Fixed duplicate 'Tiada hasil tersedia' messages in results page - Separated error and info messages with distinct translation keys - Added results_module_not_available and results_contact_support translation keys - Error now shows: 'Modul hasil tidak tersedia' - Info now shows: 'Sila hubungi sokongan jika isu ini berterusan.'2f253f7
-
feat: Implement AI Assistant Integration Guide
- Update CONFIG message handling to store user config in window.userConfig - Enhance ANALYSIS_COMPLETE message sending with proper format and sessionStorage backup - Add REQUEST_CONFIG_UPDATE functionality for config synchronization - Implement comprehensive error handling with safePostMessage function - Add automatic config update requests after analysis completion - Improve bidirectional communication between AI assistant and CropDrive website99cf00c -
Fix accessibility issues - Add JavaScript to ensure all form fields have id/name attributes and proper label associations
73aaa22 -
Add documentation note about harmless browser Permissions Policy warnings
7aaf267 -
Fix Streamlit set_page_config error - Move st.set_page_config() to be the first Streamlit command and replace early st.error() calls with print()
9915d4a
-
Replace all AGS AI references with CropDrive™ AI Assistant
- Updated app title and all UI references - Updated English and Malaysian translations - Updated README.md title - Updated PDF generated by text - Updated footer copyright text45a796d -
Replace all AGS AI references with CropDriveTM
- Updated app title, subtitles, and copyright notices - Replaced AGS AI Assistant with CropDriveTM Assistant - Updated PDF generation system name - Updated admin account email and name - Updated machine ID file name - Updated all translation strings (English and Malaysian) - Updated README.md title8b86c19
-
Minor updates to user tracking and translations
bf32bf5
-
Add user ID tracking and language handling for CropDrive integration - Save analysis results with user ID from CropDrive website - Enhanced language handling with URL params and postMessage support - Improved bidirectional communication between Streamlit and parent website
0930564 -
Remove Start Analysis button from homepage, keep only Upload Your Files button
6c99fd6 -
Update admin panel for Hugging Face Spaces secrets and add upload button to homepage
f0065ab
-
Show Streamlit header and menu again
ad1c653 -
Force light theme in app layout
1748ad7 -
Fix sidebar light theme colors
0039180 -
Force Streamlit UI to light mode
28dacfa -
Use env-based Firebase, Gemini, and Document AI config
970e192 -
clean repo
c4e11b8 -
clean repo
fb5dc87