Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from agentic_handler import run_agenticseek | |
| from utils import generate_pdf | |
| import os | |
| os.environ["STREAMLIT_HOME"] = os.getcwd() | |
| st.title("📝 TNPSC தமிழில் உதவியாளர்") | |
| if st.button("தொடங்குங்கள்"): | |
| st.info("AI உதவியாளர் உங்கள் தகவல்களை சேகரிக்க தொடங்குகிறது...") | |
| result = run_agenticseek() | |
| if result: | |
| st.success("✅ சேகரிக்கப்பட்ட தகவல்:") | |
| st.json(result) | |
| pdf_path = generate_pdf(result) | |
| with open(pdf_path, "rb") as file: | |
| st.download_button("📥 PDF பதிவிறக்கம் செய்ய", file, file_name="tnpsc_form.pdf") | |
| else: | |
| st.error("தகவல் சேகரிக்க முடியவில்லை.") | |