Spaces:
Sleeping
Sleeping
Commit History
-
Fix PyABSA v2.4.2 API
2e2ec5c -
Fix PyABSA v2.4.2 API - use ATEPC
d0d45bd -
Fix PyABSA v2.4.2 API - use ATEPCCheckpointManager
07164fa -
ATPC fixes
95fbfc5 -
Adding git and git-lfs to the HF spaces
5b0f561 -
Updating models
99cc145
-
Fixes1
a8443d7 -
Fixes
70de5e9 -
Fixes for model calling
f70514c -
Updating FastAPI calls
dd42f74
-
Integrated PyABSA again
2b4639d -
Changed translation model
ac8959c -
Fx1
9b1ad5f -
Adding fix
b17ff40 -
Adding cancellation button:
102e87a
-
ROLLBACK: Restore PyABSA approach for high accuracy
Restored PyABSA implementation in data_processor.py Updated requirements for ML dependencies (torch, transformers, pyabsa) Fixed requirements-docker.txt for HF Spaces deployment Updated secrets template for PyABSA approach Created comprehensive PyABSA deployment guide Rationale: Higher accuracy needed than HF API transformers Strategy: HF Spaces backend + Streamlit Cloud frontend Next: Deploy backend to HF Spaces with PyABSA modelsf71c767 -
MAJOR: Switch to HF Inference API + Streamlit Cloud approach
BREAKING CHANGE: Complete architecture overhaul for better reliability **API Integration:** - Replaced PyABSA with HF Inference API (cardiffnlp/twitter-roberta-base-sentiment-latest) - Replaced local M2M100 with HF Translation API - Added smart retry logic with exponential backoff - Graceful fallbacks when API unavailable **Optimized Dependencies:** - Removed torch (~1GB), transformers (~500MB), pyabsa - Added requests for API calls - Result: ~1.5GB smaller, much faster builds **Performance Improvements:** - Enhanced aspects: 10 categories with better keywords - Progress logging for user feedback - Robust error handling with fallbacks - Production-ready timeout and retry logic **Streamlit Cloud Ready:** - Created .streamlit/config.toml for production settings - Added secrets template for HF_TOKEN - Comprehensive deployment guide - Optimized for file uploads and better UX **Benefits:** - Faster builds (3-5 min vs 10-15 min) - Lower memory (500MB vs 2-3GB) - Better reliability …ee7ef03
-
Fix PyABSA checkpoint loading with fallback options
- Fixed 'multilingual' checkpoint download failure - Added fallback checkpoint options: english, chinese, default - Tries multiple checkpoints until one succeeds - Better error handling and logging for each attempt - Should resolve 'expected str, bytes or os.PathLike object, not NoneType' error The app will now try different PyABSA checkpoints instead of failing on 'multilingual'.ebe1bc5 -
Major upgrade: Python 3.11 + Clean ABSA implementation
1. Upgraded to Python 3.11: - Updated Dockerfile from python:3.9-slim to python:3.11-slim - Better compatibility with PyABSA library - Improved performance and modern language features 2. Cleaned ABSA implementation: - Removed TextBlob fallback sentiment analysis - Simplified ABSAProcessor to use only PyABSA - Returns empty results when ABSA unavailable instead of fallback - Removed textblob dependency from requirements 3. Benefits: - Cleaner, more focused codebase - Better PyABSA compatibility with Python 3.11 - Faster builds with fewer dependencies - More predictable behavior This should resolve the type annotation compatibility issues.2eed23e -
Critical fixes for Docker deployment
1. Fixed cache directory permissions: - Added cache directory setup in Dockerfile with proper permissions - Added HF_HOME and TRANSFORMERS_CACHE environment variables - Added cache directory initialization in app startup 2. Fixed type annotation compatibility: - Removed @st.cache_resource decorators from class methods - Fixed Python 3.9 compatibility issues with union types - Updated TranslationService and ABSAProcessor model loading These fixes should resolve the permission denied and type annotation errors.1798510 -
Deploy enhanced sentiment analysis dashboard with advanced NLP features
Parthnuwal7- Added app_enhanced.py with comprehensive ABSA capabilities - Included network analysis, Sankey diagrams, timeline charts - Optimized Docker configuration for HF Spaces deployment - Added multilingual support and intent classification - Enhanced visualizations with KPI dashboard and export features66b9109