Entz commited on
Commit
6b46691
·
verified ·
1 Parent(s): 5f18dcb

Upload index.py

Browse files
Files changed (1) hide show
  1. index.py +4 -6
index.py CHANGED
@@ -3,12 +3,10 @@ import requests
3
  import json
4
  import time
5
  import random
6
- from dotenv import load_dotenv
7
  import os
8
 
9
  # Load environment variables
10
- load_dotenv()
11
- API_URL = os.getenv("API_URL", "https://registration-backend-r1uy.onrender.com")
12
 
13
  # Read content from text files
14
  def read_content_from_file(file_path):
@@ -123,9 +121,9 @@ def main():
123
  intro_content = read_content_from_file("tab1.txt")
124
  st.markdown(intro_content)
125
 
126
- # Tab 2: Registration
127
  with tab2:
128
- st.subheader("Register")
129
  registration_content = read_content_from_file("tab2.txt")
130
  st.markdown(registration_content)
131
  st.markdown("**Developed by [email protected]**")
@@ -162,7 +160,7 @@ def main():
162
  st.info(
163
  f"This question is optional. Check the box to skip, or enter your information below.\n"
164
  f"- For address: Include house number (e.g., 123), street name (e.g., High Street), town/city (e.g., London), and postcode (e.g., SW1A 1AA). Example: 123 High Street, London, SW1A 1AA.\n"
165
- f"- For phone: Use 10 digits for landlines (e.g., 020 123 4567) or 11 digits for mobiles starting with 07 (e.g., 07700 900 123). Do not use +44 or other region numbers."
166
  )
167
  if is_address_question:
168
  st.session_state.skip_address = st.checkbox("Skip this question", value=st.session_state.skip_address)
 
3
  import json
4
  import time
5
  import random
 
6
  import os
7
 
8
  # Load environment variables
9
+ API_URL = os.getenv("API_URL")
 
10
 
11
  # Read content from text files
12
  def read_content_from_file(file_path):
 
121
  intro_content = read_content_from_file("tab1.txt")
122
  st.markdown(intro_content)
123
 
124
+ # Tab 2: Registration Application
125
  with tab2:
126
+ st.subheader("Registration")
127
  registration_content = read_content_from_file("tab2.txt")
128
  st.markdown(registration_content)
129
  st.markdown("**Developed by [email protected]**")
 
160
  st.info(
161
  f"This question is optional. Check the box to skip, or enter your information below.\n"
162
  f"- For address: Include house number (e.g., 123), street name (e.g., High Street), town/city (e.g., London), and postcode (e.g., SW1A 1AA). Example: 123 High Street, London, SW1A 1AA.\n"
163
+ f"- For phone: Use 10 digits for landlines (e.g., 020 123 4567) or 11 digits for mobiles starting with 07 (e.g., 07700 900 123). Avoid +44 formats."
164
  )
165
  if is_address_question:
166
  st.session_state.skip_address = st.checkbox("Skip this question", value=st.session_state.skip_address)