""" ATOM + AIMONEYFLOW Hub Combined application integrating ATOM PDF tools and AIMONEYFLOW loan advisory """ import gradio as gr import requests import os # Configuration ATOM_BUCKET = "https://huggingface.co/datasets/techprotrade/annator" HF_API_TOKEN = os.getenv("HF_TOKEN", "") def get_atom_files(): """List files from ATOM bucket""" try: # Files are in the bucket atom_files = [ "ATOM_APPS_AND_INTEGRATIONS_INVENTORY.md", "ATOM_WORKSPACE_AUDIT.md", "backend_openapi_4490.json", "atom.db" ] return "\n".join(atom_files) except Exception as e: return f"Error: {str(e)}" def get_aimoneyflow_files(): """List AIMONEYFLOW files""" try: aimf_files = [ "aimoneyflow/", "eestilaenud2026/", "loan-advisor-agent/", "loan-advisor-chatgpt-app/", "Kliendibaas/" ] return "\n".join(aimf_files) except Exception as e: return f"Error: {str(e)}" # Gradio Interface with gr.Blocks(title="ATOM + AIMONEYFLOW Hub") as demo: gr.Markdown("# ATOM + AIMONEYFLOW Hub") gr.Markdown("Combined workspace for PDF processing and loan advisory tools") with gr.Tab("ATOM Workspace"): gr.Markdown("## ATOM PDF Processing Tools") atom_files = get_atom_files() gr.Textbox(label="Available Files", value=atom_files, lines=10) gr.Markdown(f"[View ATOM Bucket]({ATOM_BUCKET})") with gr.Tab("AIMONEYFLOW"): gr.Markdown("## AIMONEYFLOW Loan Advisory") aimf_files = get_aimoneyflow_files() gr.Textbox(label="Available Components", value=aimf_files, lines=10) with gr.Tab("Netlify Frontend"): gr.Markdown("## Frontend Deployment") gr.Markdown("Frontend is deployed to Netlify") gr.Textbox(label="Netlify URL", value="https://atom-money-hub.netlify.app") if __name__ == "__main__": demo.launch()