Entz commited on
Commit
244bce6
·
verified ·
1 Parent(s): e6c6b3b

Upload index.py

Browse files
Files changed (1) hide show
  1. index.py +2 -2
index.py CHANGED
@@ -21,7 +21,7 @@ def start_registration():
21
  print("Starting registration...")
22
  try:
23
  headers = {"Origin": "https://entz-council-3.hf.space"}
24
- response = requests.post(f"{API_URL}/start_registration", headers=headers, timeout=10)
25
  response.raise_for_status()
26
  data = response.json()
27
  print("API Response:", data)
@@ -131,7 +131,7 @@ def read_content_from_file(file_path):
131
  return f"Error: {file_path} not found."
132
 
133
  st.title("AI-Powered Registration System")
134
- st.markdown("**Developed by [email protected]**")
135
 
136
  if st.session_state.summary:
137
  st.success("Registration Complete!")
 
21
  print("Starting registration...")
22
  try:
23
  headers = {"Origin": "https://entz-council-3.hf.space"}
24
+ response = requests.post(f"{API_URL}/start_registration", headers=headers, timeout=1)
25
  response.raise_for_status()
26
  data = response.json()
27
  print("API Response:", data)
 
131
  return f"Error: {file_path} not found."
132
 
133
  st.title("AI-Powered Registration System")
134
+ st.markdown("*** If 403 or other connection errors, please refresh the page every 1 minute, because the backend server is being spun up. Developed by [email protected]**")
135
 
136
  if st.session_state.summary:
137
  st.success("Registration Complete!")