Spaces:
Sleeping
Sleeping
File size: 909 Bytes
0e86d93 9370093 e952b1e 0e86d93 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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("தகவல் சேகரிக்க முடியவில்லை.")
|