kamalaak commited on
Commit
0e86d93
·
1 Parent(s): af9991c

initial commit

Browse files
agent_configs/tnpsc_agent.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ agent:
2
+ id: tnpsc_tamil_agent
3
+ description: TNPSC Assistant (Tamil form helper)
4
+ language: ta-IN
5
+ goals:
6
+ - Collect form info
7
+ - Output structured answers
8
+ tools:
9
+ - memory
10
+ - planner
11
+ workflow:
12
+ - ask: "உங்கள் பெயர் என்ன?"
13
+ store_as: name
14
+ - ask: "பிறந்த தேதி (dd/mm/yyyy)?"
15
+ store_as: dob
16
+ - ask: "தொடர்பு எண்?"
17
+ store_as: phone
18
+ - complete: "நன்றி! உங்கள் தகவல் சேமிக்கப்பட்டது."
app/README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # TNPSC Tamil Assistant
2
+
3
+ AI-powered form filling assistant in Tamil using AgenticSeek, deployed with Streamlit on Hugging Face Spaces.
app/agentic_handler.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from agenticSeek.runner import AgentRunner
2
+
3
+ def run_agenticseek(config_path="agent_configs/tnpsc_agent.yaml"):
4
+ runner = AgentRunner(config_path=config_path)
5
+ result = runner.run_agent()
6
+ return result
app/main.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from app.agentic_handler import run_agenticseek
3
+ from app.utils import generate_pdf
4
+
5
+ st.title("📝 TNPSC தமிழில் உதவியாளர்")
6
+
7
+ if st.button("தொடங்குங்கள்"):
8
+ st.info("AI உதவியாளர் உங்கள் தகவல்களை சேகரிக்க தொடங்குகிறது...")
9
+ result = run_agenticseek()
10
+
11
+ if result:
12
+ st.success("✅ சேகரிக்கப்பட்ட தகவல்:")
13
+ st.json(result)
14
+
15
+ pdf_path = generate_pdf(result)
16
+ with open(pdf_path, "rb") as file:
17
+ st.download_button("📥 PDF பதிவிறக்கம் செய்ய", file, file_name="tnpsc_form.pdf")
18
+ else:
19
+ st.error("தகவல் சேகரிக்க முடியவில்லை.")
app/requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ streamlit
2
+ fpdf
3
+ agenticseek @ git+https://github.com/Fosowl/agenticSeek.git
4
+
app/utils.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fpdf import FPDF
2
+
3
+ def generate_pdf(data, output_path="output/filled_form.pdf"):
4
+ pdf = FPDF()
5
+ pdf.add_page()
6
+ pdf.set_font("Arial", size=12)
7
+
8
+ pdf.cell(200, 10, txt="TNPSC Form", ln=True, align="C")
9
+ pdf.ln(10)
10
+
11
+ for key, value in data.items():
12
+ pdf.cell(200, 10, txt=f"{key}: {value}", ln=True)
13
+
14
+ pdf.output(output_path)
15
+ return output_path
requirements.txt CHANGED
@@ -1,3 +1,10 @@
1
  altair
2
  pandas
3
- streamlit
 
 
 
 
 
 
 
 
1
  altair
2
  pandas
3
+ streamlit
4
+ fpdf
5
+ openai-whisper
6
+ pydub
7
+ SpeechRecognition
8
+ pytesseract
9
+ opencv-python
10
+ Pillow