Spaces:
Sleeping
Sleeping
Commit History
-
Fixing models for PyABSA
b2f2eab -
ATPC fixes
95fbfc5 -
Adding git and git-lfs to the HF spaces
5b0f561
-
Fixed dockerfile
a9680a1 -
Adding dockerfile
a4da994 -
Adding Mongo+Redis concept
4b62d23
-
Fixing things again
41146f6
-
ADD: FastAPI server for HF Spaces API endpoints
Added api_server.py - FastAPI backend with REST endpoints /process-reviews endpoint for frontend integration /health endpoint for status checking Updated Dockerfile to run FastAPI server Added FastAPI, uvicorn, pydantic to requirements CORS enabled for frontend connections Frontend can now connect: POST /process-reviews Status: API architecture complete, ready for testingc08a089 -
FIX: Add spaCy model for PyABSA compatibility
Fixed PyABSA dependency (uncommented in requirements) Added spaCy English model to requirements Updated Dockerfile to install en_core_web_sm PyABSA multilingual checkpoint already working! Status: Final dependency fix for complete deployment6a45d88 -
FIX: Docker permission issue in Dockerfile
Fixed file permission error in HF Spaces deployment Changed order: set ownership before switching to user PyABSA dependencies successfully installed (106.7s) Status: Ready for deployment testingcf02b75 -
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
-
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 -
Fix Dockerfile: Remove software-properties-common package
- Removed software-properties-common which is not available in python:3.9-slim - Kept essential packages: build-essential, curl, git - This should resolve the Docker build failure28acaaf -
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 -
Duplicate from streamlit/streamlit-template-space
Verified signatureCo-authored-by: Franck Abgrall <FranckAbgrall@users.noreply.huggingface.co>41a3533