Spaces:
Running
Running
# Project Structure Tree | |
project/ | |
β | |
βββ external_services/ | |
β βββ linkedin_api/ # External LinkedIn API | |
β βββ bubble_db/ # Bubble.io database | |
β βββ groq_api/ # GROQ API for NLP | |
β | |
βββ core_application_ui/ | |
β βββ app.py # Gradio UI, Main Control | |
β βββ ui_generators.py # HTML & plot generation | |
β βββ gradio_utils.py # URL param helper | |
β | |
βββ state_sync/ | |
β βββ state_manager.py # Manages TOKEN_STATE, Bubble read, sync decision | |
β βββ sync_logic.py # Orchestrates data sync | |
β βββ token_state/ # Gradio in-memory data store (conceptual) | |
β | |
βββ linkedin_api_layer/ | |
β βββ linkedin_data_api_calls.py # Fetches LinkedIn posts, mentions, comments | |
β βββ linkedin_follower_stats.py # Follower demographics | |
β βββ data_fetching_and_rendering.py # Posts/Stats for analytics | |
β βββ mentions_dashboard.py # Mentions data for analytics | |
β βββ analytics_fetch_and_rendering.py # Fetch + render data for Analytics tab | |
β | |
βββ nlp_services/ | |
β βββ posts_categorization.py # Summarization and classification (via GROQ) | |
β βββ transformers/ # HuggingFace local models for sentiment | |
β | |
βββ db_interface/ | |
β βββ bubble_api_calls.py # Bubble CRUD API interface | |
β | |
βββ utilities/ | |
β βββ config.py # Constants and environment variables | |
β βββ sessions.py # LinkedIn API session management | |
β βββ error_handling.py # Error catching and display | |
β | |
βββ README.md # (Optional) Docs about architecture and flow | |
app.py | |
βββ uses: gradio_utils.py | |
βββ controls: state_manager.py | |
βββ triggers: sync_logic.py | |
βββ updates: token_state | |
βββ renders: ui_generators.py, analytics_fetch_and_rendering.py | |
state_manager.py | |
βββ reads/writes: token_state | |
βββ reads: bubble_api_calls.py | |
βββ uses: config.py | |
sync_logic.py | |
βββ reads/writes: token_state | |
βββ fetches from: | |
β βββ linkedin_data_api_calls.py | |
β βββ linkedin_follower_stats.py | |
βββ updates: bubble_api_calls.py | |
βββ uses: config.py | |
linkedin_data_api_calls.py | |
βββ uses: sessions.py | |
βββ calls NLP: posts_categorization.py | |
βββ uses: transformers/ | |
βββ fetches from: LinkedIn API | |