Upload 3 files
Browse files
index.py
CHANGED
@@ -39,7 +39,7 @@ def reset_session_state():
|
|
39 |
def start_registration():
|
40 |
print("Starting registration...")
|
41 |
try:
|
42 |
-
response = requests.post(f"{API_URL}/start_registration", timeout=
|
43 |
response.raise_for_status()
|
44 |
data = response.json()
|
45 |
print("API Response:", data)
|
@@ -129,7 +129,7 @@ def main():
|
|
129 |
|
130 |
# Tab 2: Registration Application
|
131 |
with tab2:
|
132 |
-
st.subheader("Registration")
|
133 |
registration_content = read_content_from_file("tab2.txt")
|
134 |
st.markdown(registration_content)
|
135 |
st.markdown("**Developed by [email protected]**")
|
|
|
39 |
def start_registration():
|
40 |
print("Starting registration...")
|
41 |
try:
|
42 |
+
response = requests.post(f"{API_URL}/start_registration", timeout=0)
|
43 |
response.raise_for_status()
|
44 |
data = response.json()
|
45 |
print("API Response:", data)
|
|
|
129 |
|
130 |
# Tab 2: Registration Application
|
131 |
with tab2:
|
132 |
+
# st.subheader("Registration")
|
133 |
registration_content = read_content_from_file("tab2.txt")
|
134 |
st.markdown(registration_content)
|
135 |
st.markdown("**Developed by [email protected]**")
|
tab1.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
Data quality issues have long plagued council databases, burdening W2 workflow teams (e.g. the Assisted Travel Team's dashboard I am working on), data analysts, and engineers with manual cleaning and validation. This pilot explores how AI-driven workflows can address these pain points by streamlining user registration, ensuring accurate data collection, and reducing validation overhead.
|
2 |
|
3 |
-
* If "403 Client Error: Forbidden for url" error arises, it is because the backend server is being spinned up. Please stay patient and try refresh the page every 1 minute. It takes 1-3mins to spin up usually. 5mins is a outliner but
|
4 |
|
5 |
### What is this Registration System?
|
6 |
This application leverages **FastAPI**, **LangGraph**, and **AI validation** (**ChatGPT** with **Guardrails AI** and **dspy**) to collect user information (email, name, address, phone, username, password (included only a few for demo purpose)) with optional fields and real-time validation. It uses real-time validation to enforce formats (e.g., addresses, phone numbers), minimizing errors and enhancing data integrity stored in a PostgreSQL database.
|
|
|
1 |
Data quality issues have long plagued council databases, burdening W2 workflow teams (e.g. the Assisted Travel Team's dashboard I am working on), data analysts, and engineers with manual cleaning and validation. This pilot explores how AI-driven workflows can address these pain points by streamlining user registration, ensuring accurate data collection, and reducing validation overhead.
|
2 |
|
3 |
+
* If "403 Client Error: Forbidden for url" error arises, it is because the backend server is being spinned up. Please stay patient and try refresh the page every 1 minute. It takes 1-3mins to spin up usually. 5mins above is a outliner but could happen.
|
4 |
|
5 |
### What is this Registration System?
|
6 |
This application leverages **FastAPI**, **LangGraph**, and **AI validation** (**ChatGPT** with **Guardrails AI** and **dspy**) to collect user information (email, name, address, phone, username, password (included only a few for demo purpose)) with optional fields and real-time validation. It uses real-time validation to enforce formats (e.g., addresses, phone numbers), minimizing errors and enhancing data integrity stored in a PostgreSQL database.
|