IZERE HIRWA Roger commited on
Commit
c1ce623
Β·
1 Parent(s): b7e1d91
AIMHSA_Samples.postman_collection.json CHANGED
@@ -12,10 +12,10 @@
12
  "method": "GET",
13
  "header": [],
14
  "url": {
15
- "raw": "http://127.0.0.1:5057/healthz",
16
  "protocol": "http",
17
  "host": ["127.0.0.1"],
18
- "port": "5057",
19
  "path": ["healthz"]
20
  }
21
  }
@@ -32,10 +32,10 @@
32
  "raw": "{\n \"query\": \"What are the common symptoms of PTSD in Rwanda?\"\n}"
33
  },
34
  "url": {
35
- "raw": "http://127.0.0.1:5057/ask",
36
  "protocol": "http",
37
  "host": ["127.0.0.1"],
38
- "port": "5057",
39
  "path": ["ask"]
40
  }
41
  }
@@ -52,10 +52,10 @@
52
  "raw": "{\n \"query\": \"How can someone in Rwanda cope with anxiety?\"\n}"
53
  },
54
  "url": {
55
- "raw": "http://127.0.0.1:5057/ask",
56
  "protocol": "http",
57
  "host": ["127.0.0.1"],
58
- "port": "5057",
59
  "path": ["ask"]
60
  }
61
  }
@@ -72,10 +72,10 @@
72
  "raw": "{\n \"query\": \"What support services exist for depression in Rwanda?\"\n}"
73
  },
74
  "url": {
75
- "raw": "http://127.0.0.1:5057/ask",
76
  "protocol": "http",
77
  "host": ["127.0.0.1"],
78
- "port": "5057",
79
  "path": ["ask"]
80
  }
81
  }
@@ -92,10 +92,10 @@
92
  "raw": "{\n \"query\": \"Summarize Rwanda's National Mental Health Policy.\"\n}"
93
  },
94
  "url": {
95
- "raw": "http://127.0.0.1:5057/ask",
96
  "protocol": "http",
97
  "host": ["127.0.0.1"],
98
- "port": "5057",
99
  "path": ["ask"]
100
  }
101
  }
 
12
  "method": "GET",
13
  "header": [],
14
  "url": {
15
+ "raw": "http://127.0.0.1:7060/healthz",
16
  "protocol": "http",
17
  "host": ["127.0.0.1"],
18
+ "port": "7060",
19
  "path": ["healthz"]
20
  }
21
  }
 
32
  "raw": "{\n \"query\": \"What are the common symptoms of PTSD in Rwanda?\"\n}"
33
  },
34
  "url": {
35
+ "raw": "http://127.0.0.1:7060/ask",
36
  "protocol": "http",
37
  "host": ["127.0.0.1"],
38
+ "port": "7060",
39
  "path": ["ask"]
40
  }
41
  }
 
52
  "raw": "{\n \"query\": \"How can someone in Rwanda cope with anxiety?\"\n}"
53
  },
54
  "url": {
55
+ "raw": "http://127.0.0.1:7060/ask",
56
  "protocol": "http",
57
  "host": ["127.0.0.1"],
58
+ "port": "7060",
59
  "path": ["ask"]
60
  }
61
  }
 
72
  "raw": "{\n \"query\": \"What support services exist for depression in Rwanda?\"\n}"
73
  },
74
  "url": {
75
+ "raw": "http://127.0.0.1:7060/ask",
76
  "protocol": "http",
77
  "host": ["127.0.0.1"],
78
+ "port": "7060",
79
  "path": ["ask"]
80
  }
81
  }
 
92
  "raw": "{\n \"query\": \"Summarize Rwanda's National Mental Health Policy.\"\n}"
93
  },
94
  "url": {
95
+ "raw": "http://127.0.0.1:7060/ask",
96
  "protocol": "http",
97
  "host": ["127.0.0.1"],
98
+ "port": "7060",
99
  "path": ["ask"]
100
  }
101
  }
app.py CHANGED
@@ -3765,7 +3765,7 @@ def get_recent_assessments():
3765
  finally:
3766
  conn.close()
3767
 
3768
- # Update run configuration to use port 5057 for API only
3769
  # --- PROFESSIONAL DASHBOARD API ENDPOINTS ---
3770
 
3771
  @app.put("/professional/profile")
@@ -5030,4 +5030,4 @@ def get_sms_status():
5030
  return jsonify({'error': f'Failed to get SMS status: {str(e)}'}), 500
5031
 
5032
  if __name__ == "__main__":
5033
- app.run(host="0.0.0.0", port=5057, debug=True)
 
3765
  finally:
3766
  conn.close()
3767
 
3768
+ # Update run configuration to use port 7060 for API only
3769
  # --- PROFESSIONAL DASHBOARD API ENDPOINTS ---
3770
 
3771
  @app.put("/professional/profile")
 
5030
  return jsonify({'error': f'Failed to get SMS status: {str(e)}'}), 500
5031
 
5032
  if __name__ == "__main__":
5033
+ app.run(host="0.0.0.0", port=7060, debug=True)
chatbot/admin.css CHANGED
@@ -2021,7 +2021,7 @@ body {
2021
  #professionalForm select,
2022
  #professionalForm textarea {
2023
  background-color: #fff !important;
2024
- color: #495057 !important;
2025
  border: 1px solid #ced4da !important;
2026
  padding: 0.375rem 0.75rem !important;
2027
  font-size: 1rem !important;
@@ -2043,19 +2043,19 @@ body {
2043
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2044
  outline: 0 !important;
2045
  background-color: #fff !important;
2046
- color: #495057 !important;
2047
  }
2048
 
2049
  #professionalForm input:not(:disabled):not([readonly]) {
2050
  background-color: #fff !important;
2051
- color: #495057 !important;
2052
  cursor: text !important;
2053
  }
2054
 
2055
  /* Ensure form controls work */
2056
  #professionalForm .form-control {
2057
  background-color: #fff !important;
2058
- color: #495057 !important;
2059
  border: 1px solid #ced4da !important;
2060
  padding: 0.375rem 0.75rem !important;
2061
  font-size: 1rem !important;
@@ -2070,7 +2070,7 @@ body {
2070
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2071
  outline: 0 !important;
2072
  background-color: #fff !important;
2073
- color: #495057 !important;
2074
  }
2075
 
2076
  /* Modal input fixes */
@@ -2078,7 +2078,7 @@ body {
2078
  #professionalModal select,
2079
  #professionalModal textarea {
2080
  background-color: #fff !important;
2081
- color: #495057 !important;
2082
  border: 1px solid #ced4da !important;
2083
  padding: 0.375rem 0.75rem !important;
2084
  font-size: 1rem !important;
@@ -2097,13 +2097,13 @@ body {
2097
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2098
  outline: 0 !important;
2099
  background-color: #fff !important;
2100
- color: #495057 !important;
2101
  }
2102
 
2103
  #professionalForm .form-control {
2104
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
2105
  background-color: #fff !important;
2106
- color: #495057 !important;
2107
  border: 1px solid #ced4da !important;
2108
  padding: 0.375rem 0.75rem !important;
2109
  font-size: 1rem !important;
@@ -2116,12 +2116,12 @@ body {
2116
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2117
  outline: 0 !important;
2118
  background-color: #fff !important;
2119
- color: #495057 !important;
2120
  }
2121
 
2122
  #professionalForm .form-control:not(:disabled):not([readonly]) {
2123
  background-color: #fff !important;
2124
- color: #495057 !important;
2125
  }
2126
 
2127
  #professionalForm input[type="text"],
@@ -2132,7 +2132,7 @@ body {
2132
  #professionalForm select,
2133
  #professionalForm textarea {
2134
  background-color: #fff !important;
2135
- color: #495057 !important;
2136
  border: 1px solid #ced4da !important;
2137
  padding: 0.375rem 0.75rem !important;
2138
  font-size: 1rem !important;
@@ -2149,7 +2149,7 @@ body {
2149
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2150
  outline: 0 !important;
2151
  background-color: #fff !important;
2152
- color: #495057 !important;
2153
  }
2154
 
2155
  #professionalForm .form-control:focus {
 
2021
  #professionalForm select,
2022
  #professionalForm textarea {
2023
  background-color: #fff !important;
2024
+ color: #497060 !important;
2025
  border: 1px solid #ced4da !important;
2026
  padding: 0.375rem 0.75rem !important;
2027
  font-size: 1rem !important;
 
2043
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2044
  outline: 0 !important;
2045
  background-color: #fff !important;
2046
+ color: #497060 !important;
2047
  }
2048
 
2049
  #professionalForm input:not(:disabled):not([readonly]) {
2050
  background-color: #fff !important;
2051
+ color: #497060 !important;
2052
  cursor: text !important;
2053
  }
2054
 
2055
  /* Ensure form controls work */
2056
  #professionalForm .form-control {
2057
  background-color: #fff !important;
2058
+ color: #497060 !important;
2059
  border: 1px solid #ced4da !important;
2060
  padding: 0.375rem 0.75rem !important;
2061
  font-size: 1rem !important;
 
2070
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2071
  outline: 0 !important;
2072
  background-color: #fff !important;
2073
+ color: #497060 !important;
2074
  }
2075
 
2076
  /* Modal input fixes */
 
2078
  #professionalModal select,
2079
  #professionalModal textarea {
2080
  background-color: #fff !important;
2081
+ color: #497060 !important;
2082
  border: 1px solid #ced4da !important;
2083
  padding: 0.375rem 0.75rem !important;
2084
  font-size: 1rem !important;
 
2097
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2098
  outline: 0 !important;
2099
  background-color: #fff !important;
2100
+ color: #497060 !important;
2101
  }
2102
 
2103
  #professionalForm .form-control {
2104
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
2105
  background-color: #fff !important;
2106
+ color: #497060 !important;
2107
  border: 1px solid #ced4da !important;
2108
  padding: 0.375rem 0.75rem !important;
2109
  font-size: 1rem !important;
 
2116
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2117
  outline: 0 !important;
2118
  background-color: #fff !important;
2119
+ color: #497060 !important;
2120
  }
2121
 
2122
  #professionalForm .form-control:not(:disabled):not([readonly]) {
2123
  background-color: #fff !important;
2124
+ color: #497060 !important;
2125
  }
2126
 
2127
  #professionalForm input[type="text"],
 
2132
  #professionalForm select,
2133
  #professionalForm textarea {
2134
  background-color: #fff !important;
2135
+ color: #497060 !important;
2136
  border: 1px solid #ced4da !important;
2137
  padding: 0.375rem 0.75rem !important;
2138
  font-size: 1rem !important;
 
2149
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
2150
  outline: 0 !important;
2151
  background-color: #fff !important;
2152
+ color: #497060 !important;
2153
  }
2154
 
2155
  #professionalForm .form-control:focus {
chatbot/admin.js CHANGED
@@ -9,8 +9,8 @@
9
  try {
10
  const loc = window.location;
11
  if (loc.port === '8000') {
12
- return `${loc.protocol}//${loc.hostname}:5057`;
13
- } else if (loc.port === '5057' || loc.port === '') {
14
  return loc.origin;
15
  } else {
16
  return 'https://prodevroger-ishingiro.hf.space';
 
9
  try {
10
  const loc = window.location;
11
  if (loc.port === '8000') {
12
+ return `${loc.protocol}//${loc.hostname}:7060`;
13
+ } else if (loc.port === '7060' || loc.port === '') {
14
  return loc.origin;
15
  } else {
16
  return 'https://prodevroger-ishingiro.hf.space';
chatbot/admin_advanced.js CHANGED
@@ -17,8 +17,8 @@
17
  try {
18
  const loc = window.location;
19
  if (loc.port === '8000') {
20
- apiRoot = `${loc.protocol}//${loc.hostname}:5057`;
21
- } else if (loc.port === '5057' || loc.port === '') {
22
  apiRoot = loc.origin;
23
  } else {
24
  apiRoot = 'https://prodevroger-ishingiro.hf.space';
@@ -2211,7 +2211,7 @@
2211
  // Force CSS properties
2212
  input.css({
2213
  'background-color': '#fff !important',
2214
- 'color': '#495057 !important',
2215
  'pointer-events': 'auto !important',
2216
  'user-select': 'text !important',
2217
  'cursor': 'text !important'
@@ -2342,7 +2342,7 @@
2342
  // Force CSS properties
2343
  input.css({
2344
  'background-color': '#fff',
2345
- 'color': '#495057',
2346
  'pointer-events': 'auto',
2347
  'user-select': 'text',
2348
  'cursor': 'text'
 
17
  try {
18
  const loc = window.location;
19
  if (loc.port === '8000') {
20
+ apiRoot = `${loc.protocol}//${loc.hostname}:7060`;
21
+ } else if (loc.port === '7060' || loc.port === '') {
22
  apiRoot = loc.origin;
23
  } else {
24
  apiRoot = 'https://prodevroger-ishingiro.hf.space';
 
2211
  // Force CSS properties
2212
  input.css({
2213
  'background-color': '#fff !important',
2214
+ 'color': '#497060 !important',
2215
  'pointer-events': 'auto !important',
2216
  'user-select': 'text !important',
2217
  'cursor': 'text !important'
 
2342
  // Force CSS properties
2343
  input.css({
2344
  'background-color': '#fff',
2345
+ 'color': '#497060',
2346
  'pointer-events': 'auto',
2347
  'user-select': 'text',
2348
  'cursor': 'text'
chatbot/admin_dashboard.html CHANGED
@@ -67,7 +67,7 @@
67
  .form-control {
68
  background-color: #fff !important;
69
  border: 1px solid #ced4da !important;
70
- color: #495057 !important;
71
  }
72
  .form-control:focus {
73
  border-color: #80bdff !important;
@@ -81,7 +81,7 @@
81
  }
82
  .modal-body .form-control {
83
  background-color: #fff !important;
84
- color: #495057 !important;
85
  }
86
  .modal-body .form-control:disabled {
87
  background-color: #e9ecef !important;
 
67
  .form-control {
68
  background-color: #fff !important;
69
  border: 1px solid #ced4da !important;
70
+ color: #497060 !important;
71
  }
72
  .form-control:focus {
73
  border-color: #80bdff !important;
 
81
  }
82
  .modal-body .form-control {
83
  background-color: #fff !important;
84
+ color: #497060 !important;
85
  }
86
  .modal-body .form-control:disabled {
87
  background-color: #e9ecef !important;
chatbot/app.js CHANGED
@@ -5,7 +5,7 @@
5
  return window.AIMHSA.Config.getApiBaseUrl();
6
  }
7
  // Fallback to auto-detection
8
- return `http://${window.location.hostname}:${window.location.port || '5057'}`;
9
  };
10
 
11
  const API_BASE_URL = getAPIBaseUrl();
 
5
  return window.AIMHSA.Config.getApiBaseUrl();
6
  }
7
  // Fallback to auto-detection
8
+ return `http://${window.location.hostname}:${window.location.port || '7060'}`;
9
  };
10
 
11
  const API_BASE_URL = getAPIBaseUrl();
chatbot/auth.js CHANGED
@@ -8,7 +8,7 @@
8
  }
9
 
10
  // Fallback to auto-detection
11
- return `http://${window.location.hostname}:${window.location.port || '5057'}`;
12
  };
13
 
14
  const API_BASE_URL = getAPIBaseUrl();
 
8
  }
9
 
10
  // Fallback to auto-detection
11
+ return `http://${window.location.hostname}:${window.location.port || '7060'}`;
12
  };
13
 
14
  const API_BASE_URL = getAPIBaseUrl();
chatbot/config.js CHANGED
@@ -180,11 +180,11 @@
180
  // Smart API URL detection
181
  if (currentLocation.port === '8000') {
182
  // Development server (likely Python/Django)
183
- this.config.api.baseUrl = `${currentLocation.protocol}//${currentLocation.hostname}:5057`;
184
  } else if (currentLocation.port === '3000') {
185
  // React development server
186
- this.config.api.baseUrl = `${currentLocation.protocol}//${currentLocation.hostname}:5057`;
187
- } else if (currentLocation.port === '5057') {
188
  // Running on API port
189
  this.config.api.baseUrl = currentLocation.origin;
190
  } else if (currentLocation.port === '80' || currentLocation.port === '443' || !currentLocation.port) {
 
180
  // Smart API URL detection
181
  if (currentLocation.port === '8000') {
182
  // Development server (likely Python/Django)
183
+ this.config.api.baseUrl = `${currentLocation.protocol}//${currentLocation.hostname}:7060`;
184
  } else if (currentLocation.port === '3000') {
185
  // React development server
186
+ this.config.api.baseUrl = `${currentLocation.protocol}//${currentLocation.hostname}:7060`;
187
+ } else if (currentLocation.port === '7060') {
188
  // Running on API port
189
  this.config.api.baseUrl = currentLocation.origin;
190
  } else if (currentLocation.port === '80' || currentLocation.port === '443' || !currentLocation.port) {
chatbot/js/config.js CHANGED
@@ -85,7 +85,7 @@ class AppConfig {
85
  case 'development':
86
  // In development, API might be on different port
87
  if (port === '8000' || port === '3000') {
88
- return `${protocol}//${hostname}:5057`;
89
  }
90
  return ''; // Same origin
91
 
 
85
  case 'development':
86
  // In development, API might be on different port
87
  if (port === '8000' || port === '3000') {
88
+ return `${protocol}//${hostname}:7060`;
89
  }
90
  return ''; // Same origin
91
 
chatbot/landing.js CHANGED
@@ -3,7 +3,7 @@
3
  'use strict';
4
 
5
  // Get API URL from environment or use current host
6
- const API_BASE_URL = `http://${window.location.hostname}:${window.location.port || '5057'}`;
7
 
8
  // Smooth scrolling for navigation links
9
  function initSmoothScrolling() {
 
3
  'use strict';
4
 
5
  // Get API URL from environment or use current host
6
+ const API_BASE_URL = `http://${window.location.hostname}:${window.location.port || '7060'}`;
7
 
8
  // Smooth scrolling for navigation links
9
  function initSmoothScrolling() {
chatbot/login.js CHANGED
@@ -1,5 +1,5 @@
1
  (() => {
2
- const API_BASE_URL = `http://${window.location.hostname}:${window.location.port || '5057'}`;
3
 
4
  // Elements
5
  const loginForm = document.getElementById('loginForm');
 
1
  (() => {
2
+ const API_BASE_URL = `http://${window.location.hostname}:${window.location.port || '7060'}`;
3
 
4
  // Elements
5
  const loginForm = document.getElementById('loginForm');
chatbot/professional.css CHANGED
@@ -1525,7 +1525,7 @@ body {
1525
 
1526
  .indicator-tag {
1527
  background: #e9ecef;
1528
- color: #495057;
1529
  padding: 0.25rem 0.5rem;
1530
  border-radius: 12px;
1531
  font-size: 0.8rem;
 
1525
 
1526
  .indicator-tag {
1527
  background: #e9ecef;
1528
+ color: #497060;
1529
  padding: 0.25rem 0.5rem;
1530
  border-radius: 12px;
1531
  font-size: 0.8rem;
chatbot/professional.js CHANGED
@@ -10,8 +10,8 @@
10
  // Fallback to auto-detection
11
  const loc = window.location;
12
  if (loc.port === '8000') {
13
- return `${loc.protocol}//${loc.hostname}:5057`;
14
- } else if (loc.port === '5057' || loc.port === '') {
15
  return loc.origin;
16
  } else {
17
  return 'https://prodevroger-ishingiro.hf.space';
 
10
  // Fallback to auto-detection
11
  const loc = window.location;
12
  if (loc.port === '8000') {
13
+ return `${loc.protocol}//${loc.hostname}:7060`;
14
+ } else if (loc.port === '7060' || loc.port === '') {
15
  return loc.origin;
16
  } else {
17
  return 'https://prodevroger-ishingiro.hf.space';
chatbot/professional_advanced.js CHANGED
@@ -11,8 +11,8 @@
11
  try {
12
  const loc = window.location;
13
  if (loc.port === '8000') {
14
- apiRoot = `${loc.protocol}//${loc.hostname}:5057`;
15
- } else if (loc.port === '5057' || loc.port === '') {
16
  apiRoot = loc.origin;
17
  } else {
18
  apiRoot = 'https://prodevroger-ishingiro.hf.space';
 
11
  try {
12
  const loc = window.location;
13
  if (loc.port === '8000') {
14
+ apiRoot = `${loc.protocol}//${loc.hostname}:7060`;
15
+ } else if (loc.port === '7060' || loc.port === '') {
16
  apiRoot = loc.origin;
17
  } else {
18
  apiRoot = 'https://prodevroger-ishingiro.hf.space';
chatbot/register.js CHANGED
@@ -1,5 +1,5 @@
1
  (() => {
2
- const API_BASE_URL = `http://${window.location.hostname}:${window.location.port || '5057'}`;
3
 
4
  // Elements
5
  const registerForm = document.getElementById('registerForm');
 
1
  (() => {
2
+ const API_BASE_URL = `http://${window.location.hostname}:${window.location.port || '7060'}`;
3
 
4
  // Elements
5
  const registerForm = document.getElementById('registerForm');
config.py CHANGED
@@ -14,7 +14,7 @@ class Config:
14
 
15
  # Server Configuration
16
  HOST = os.getenv('SERVER_HOST', '0.0.0.0')
17
- PORT = int(os.getenv('SERVER_PORT', '5057'))
18
  DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
19
 
20
  # API Configuration
@@ -53,7 +53,7 @@ class DevelopmentConfig(Config):
53
  """Development environment configuration"""
54
  DEBUG = True
55
  HOST = '0.0.0.0'
56
- PORT = 5057
57
 
58
  class ProductionConfig(Config):
59
  """Production environment configuration"""
 
14
 
15
  # Server Configuration
16
  HOST = os.getenv('SERVER_HOST', '0.0.0.0')
17
+ PORT = int(os.getenv('SERVER_PORT', '7060'))
18
  DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
19
 
20
  # API Configuration
 
53
  """Development environment configuration"""
54
  DEBUG = True
55
  HOST = '0.0.0.0'
56
+ PORT = 7060
57
 
58
  class ProductionConfig(Config):
59
  """Production environment configuration"""
setup_without_ollama.py CHANGED
@@ -167,7 +167,7 @@ def setup_openai_compatible():
167
  config_lines.extend([
168
  "# Server Configuration",
169
  "SERVER_HOST=0.0.0.0",
170
- "SERVER_PORT=5057",
171
  "FLASK_ENV=development",
172
  "DEBUG=True",
173
  "",
@@ -209,7 +209,7 @@ services:
209
  aimhsa:
210
  build: .
211
  ports:
212
- - "5057:5057"
213
  environment:
214
  - FLASK_ENV=production
215
  - DEBUG=False
@@ -270,7 +270,7 @@ RUN mkdir -p storage data
270
  RUN python init_database.py
271
 
272
  # Expose port
273
- EXPOSE 5057
274
 
275
  # Run application
276
  CMD ["python", "app.py"]
 
167
  config_lines.extend([
168
  "# Server Configuration",
169
  "SERVER_HOST=0.0.0.0",
170
+ "SERVER_PORT=7060",
171
  "FLASK_ENV=development",
172
  "DEBUG=True",
173
  "",
 
209
  aimhsa:
210
  build: .
211
  ports:
212
+ - "7060:7060"
213
  environment:
214
  - FLASK_ENV=production
215
  - DEBUG=False
 
270
  RUN python init_database.py
271
 
272
  # Expose port
273
+ EXPOSE 7060
274
 
275
  # Run application
276
  CMD ["python", "app.py"]
storage/embeddings.json CHANGED
@@ -354,7 +354,7 @@
354
  -1.6124330759048462,
355
  -0.078035868704319,
356
  0.44529786705970764,
357
- 0.5359243750572205,
358
  -0.6640201210975647,
359
  -0.21262575685977936,
360
  -0.7201595306396484,
@@ -2112,7 +2112,7 @@
2112
  0.29464787244796753,
2113
  -0.3169209063053131,
2114
  0.025695936754345894,
2115
- -0.5650571584701538,
2116
  0.6935233473777771,
2117
  -0.43925511837005615,
2118
  -0.3269723653793335,
@@ -3903,7 +3903,7 @@
3903
  -0.9911938309669495,
3904
  -0.9258748888969421,
3905
  -0.13451455533504486,
3906
- -0.5057802200317383,
3907
  0.0878990963101387,
3908
  -1.1640653610229492,
3909
  1.485425353050232,
@@ -4070,7 +4070,7 @@
4070
  0.2257869690656662,
4071
  1.0439108610153198,
4072
  -1.3952183723449707,
4073
- -0.4435224235057831,
4074
  -0.22929400205612183,
4075
  -0.5126907825469971,
4076
  -0.6773481965065002,
@@ -4794,7 +4794,7 @@
4794
  -1.087576150894165,
4795
  -0.5675505995750427,
4796
  -0.36857736110687256,
4797
- -0.28275057673454285,
4798
  0.6219515204429626,
4799
  0.8982294797897339,
4800
  -0.07706651091575623,
@@ -4902,7 +4902,7 @@
4902
  0.15682698786258698,
4903
  -0.4430997371673584,
4904
  0.34874892234802246,
4905
- 0.5057200789451599,
4906
  -0.0231634471565485,
4907
  0.045041270554065704,
4908
  -1.0134400129318237,
@@ -5082,7 +5082,7 @@
5082
  -0.2536025047302246,
5083
  0.3939010798931122,
5084
  1.2939178943634033,
5085
- 0.25864505767822266,
5086
  -0.571262538433075,
5087
  -0.010962972417473793,
5088
  0.4513074457645416,
@@ -6352,7 +6352,7 @@
6352
  -0.06419584900140762,
6353
  -0.686537504196167,
6354
  -0.9504846930503845,
6355
- 0.3418505787849426,
6356
  -0.2970084846019745,
6357
  1.1086839437484741,
6358
  -0.38216742873191833,
@@ -6686,7 +6686,7 @@
6686
  -0.23209452629089355,
6687
  0.762040913105011,
6688
  -0.013421122916042805,
6689
- -1.157550573348999,
6690
  0.19242359697818756,
6691
  -1.0599182844161987,
6692
  0.45151132345199585,
@@ -6948,7 +6948,7 @@
6948
  -1.2392604351043701,
6949
  0.3508192002773285,
6950
  0.650444507598877,
6951
- 0.21912305057048798,
6952
  -0.6795974969863892,
6953
  -0.5976784229278564,
6954
  -0.6550567150115967,
@@ -8559,7 +8559,7 @@
8559
  -0.9911938309669495,
8560
  -0.9258748888969421,
8561
  -0.13451455533504486,
8562
- -0.5057802200317383,
8563
  0.0878990963101387,
8564
  -1.1640653610229492,
8565
  1.485425353050232,
@@ -8726,7 +8726,7 @@
8726
  0.2257869690656662,
8727
  1.0439108610153198,
8728
  -1.3952183723449707,
8729
- -0.4435224235057831,
8730
  -0.22929400205612183,
8731
  -0.5126907825469971,
8732
  -0.6773481965065002,
@@ -9573,7 +9573,7 @@
9573
  1.055336594581604,
9574
  0.8473005890846252,
9575
  -1.273455262184143,
9576
- -0.23792915046215057,
9577
  0.3188213109970093,
9578
  -0.15083664655685425,
9579
  0.3701872229576111,
@@ -9647,7 +9647,7 @@
9647
  0.7953003644943237,
9648
  -0.23510213196277618,
9649
  -0.29008710384368896,
9650
- 0.6497897505760193,
9651
  1.1628128290176392,
9652
  0.7097070813179016,
9653
  -1.0151997804641724,
@@ -9913,7 +9913,7 @@
9913
  -0.653823733329773,
9914
  0.6760683655738831,
9915
  -0.9735672473907471,
9916
- 0.10808220505714417,
9917
  -0.11430589109659195,
9918
  -1.5456750392913818,
9919
  -0.6651865243911743,
@@ -10387,7 +10387,7 @@
10387
  0.32844746112823486,
10388
  0.05484013631939888,
10389
  0.9166463017463684,
10390
- -0.3650572597980499,
10391
  1.2935667037963867,
10392
  1.014633297920227,
10393
  -0.8653355240821838,
@@ -10678,7 +10678,7 @@
10678
  0.7019861340522766,
10679
  0.4363502264022827,
10680
  0.3687651455402374,
10681
- 0.17155057191848755,
10682
  -0.7631089091300964,
10683
  -0.4769899845123291,
10684
  0.6684845685958862,
 
354
  -1.6124330759048462,
355
  -0.078035868704319,
356
  0.44529786705970764,
357
+ 0.5359243770602205,
358
  -0.6640201210975647,
359
  -0.21262575685977936,
360
  -0.7201595306396484,
 
2112
  0.29464787244796753,
2113
  -0.3169209063053131,
2114
  0.025695936754345894,
2115
+ -0.5670601584701538,
2116
  0.6935233473777771,
2117
  -0.43925511837005615,
2118
  -0.3269723653793335,
 
3903
  -0.9911938309669495,
3904
  -0.9258748888969421,
3905
  -0.13451455533504486,
3906
+ -0.7060802200317383,
3907
  0.0878990963101387,
3908
  -1.1640653610229492,
3909
  1.485425353050232,
 
4070
  0.2257869690656662,
4071
  1.0439108610153198,
4072
  -1.3952183723449707,
4073
+ -0.4435224237060831,
4074
  -0.22929400205612183,
4075
  -0.5126907825469971,
4076
  -0.6773481965065002,
 
4794
  -1.087576150894165,
4795
  -0.5675505995750427,
4796
  -0.36857736110687256,
4797
+ -0.28277060673454285,
4798
  0.6219515204429626,
4799
  0.8982294797897339,
4800
  -0.07706651091575623,
 
4902
  0.15682698786258698,
4903
  -0.4430997371673584,
4904
  0.34874892234802246,
4905
+ 0.7060200789451599,
4906
  -0.0231634471565485,
4907
  0.045041270554065704,
4908
  -1.0134400129318237,
 
5082
  -0.2536025047302246,
5083
  0.3939010798931122,
5084
  1.2939178943634033,
5085
+ 0.25864706067822266,
5086
  -0.571262538433075,
5087
  -0.010962972417473793,
5088
  0.4513074457645416,
 
6352
  -0.06419584900140762,
6353
  -0.686537504196167,
6354
  -0.9504846930503845,
6355
+ 0.3418706087849426,
6356
  -0.2970084846019745,
6357
  1.1086839437484741,
6358
  -0.38216742873191833,
 
6686
  -0.23209452629089355,
6687
  0.762040913105011,
6688
  -0.013421122916042805,
6689
+ -1.157570603348999,
6690
  0.19242359697818756,
6691
  -1.0599182844161987,
6692
  0.45151132345199585,
 
6948
  -1.2392604351043701,
6949
  0.3508192002773285,
6950
  0.650444507598877,
6951
+ 0.21912307060048798,
6952
  -0.6795974969863892,
6953
  -0.5976784229278564,
6954
  -0.6550567150115967,
 
8559
  -0.9911938309669495,
8560
  -0.9258748888969421,
8561
  -0.13451455533504486,
8562
+ -0.7060802200317383,
8563
  0.0878990963101387,
8564
  -1.1640653610229492,
8565
  1.485425353050232,
 
8726
  0.2257869690656662,
8727
  1.0439108610153198,
8728
  -1.3952183723449707,
8729
+ -0.4435224237060831,
8730
  -0.22929400205612183,
8731
  -0.5126907825469971,
8732
  -0.6773481965065002,
 
9573
  1.055336594581604,
9574
  0.8473005890846252,
9575
  -1.273455262184143,
9576
+ -0.23792915046217060,
9577
  0.3188213109970093,
9578
  -0.15083664655685425,
9579
  0.3701872229576111,
 
9647
  0.7953003644943237,
9648
  -0.23510213196277618,
9649
  -0.29008710384368896,
9650
+ 0.6497897706060193,
9651
  1.1628128290176392,
9652
  0.7097070813179016,
9653
  -1.0151997804641724,
 
9913
  -0.653823733329773,
9914
  0.6760683655738831,
9915
  -0.9735672473907471,
9916
+ 0.10808220706014417,
9917
  -0.11430589109659195,
9918
  -1.5456750392913818,
9919
  -0.6651865243911743,
 
10387
  0.32844746112823486,
10388
  0.05484013631939888,
10389
  0.9166463017463684,
10390
+ -0.3670602597980499,
10391
  1.2935667037963867,
10392
  1.014633297920227,
10393
  -0.8653355240821838,
 
10678
  0.7019861340522766,
10679
  0.4363502264022827,
10680
  0.3687651455402374,
10681
+ 0.17157060191848755,
10682
  -0.7631089091300964,
10683
  -0.4769899845123291,
10684
  0.6684845685958862,
storage/embeddings.json.backup CHANGED
@@ -354,7 +354,7 @@
354
  -1.6124330759048462,
355
  -0.078035868704319,
356
  0.44529786705970764,
357
- 0.5359243750572205,
358
  -0.6640201210975647,
359
  -0.21262575685977936,
360
  -0.7201595306396484,
@@ -2112,7 +2112,7 @@
2112
  0.29464787244796753,
2113
  -0.3169209063053131,
2114
  0.025695936754345894,
2115
- -0.5650571584701538,
2116
  0.6935233473777771,
2117
  -0.43925511837005615,
2118
  -0.3269723653793335,
@@ -3903,7 +3903,7 @@
3903
  -0.9911938309669495,
3904
  -0.9258748888969421,
3905
  -0.13451455533504486,
3906
- -0.5057802200317383,
3907
  0.0878990963101387,
3908
  -1.1640653610229492,
3909
  1.485425353050232,
@@ -4070,7 +4070,7 @@
4070
  0.2257869690656662,
4071
  1.0439108610153198,
4072
  -1.3952183723449707,
4073
- -0.4435224235057831,
4074
  -0.22929400205612183,
4075
  -0.5126907825469971,
4076
  -0.6773481965065002,
@@ -4794,7 +4794,7 @@
4794
  -1.087576150894165,
4795
  -0.5675505995750427,
4796
  -0.36857736110687256,
4797
- -0.28275057673454285,
4798
  0.6219515204429626,
4799
  0.8982294797897339,
4800
  -0.07706651091575623,
@@ -4902,7 +4902,7 @@
4902
  0.15682698786258698,
4903
  -0.4430997371673584,
4904
  0.34874892234802246,
4905
- 0.5057200789451599,
4906
  -0.0231634471565485,
4907
  0.045041270554065704,
4908
  -1.0134400129318237,
@@ -5082,7 +5082,7 @@
5082
  -0.2536025047302246,
5083
  0.3939010798931122,
5084
  1.2939178943634033,
5085
- 0.25864505767822266,
5086
  -0.571262538433075,
5087
  -0.010962972417473793,
5088
  0.4513074457645416,
@@ -6352,7 +6352,7 @@
6352
  -0.06419584900140762,
6353
  -0.686537504196167,
6354
  -0.9504846930503845,
6355
- 0.3418505787849426,
6356
  -0.2970084846019745,
6357
  1.1086839437484741,
6358
  -0.38216742873191833,
@@ -6686,7 +6686,7 @@
6686
  -0.23209452629089355,
6687
  0.762040913105011,
6688
  -0.013421122916042805,
6689
- -1.157550573348999,
6690
  0.19242359697818756,
6691
  -1.0599182844161987,
6692
  0.45151132345199585,
@@ -6948,7 +6948,7 @@
6948
  -1.2392604351043701,
6949
  0.3508192002773285,
6950
  0.650444507598877,
6951
- 0.21912305057048798,
6952
  -0.6795974969863892,
6953
  -0.5976784229278564,
6954
  -0.6550567150115967,
@@ -8559,7 +8559,7 @@
8559
  -0.9911938309669495,
8560
  -0.9258748888969421,
8561
  -0.13451455533504486,
8562
- -0.5057802200317383,
8563
  0.0878990963101387,
8564
  -1.1640653610229492,
8565
  1.485425353050232,
@@ -8726,7 +8726,7 @@
8726
  0.2257869690656662,
8727
  1.0439108610153198,
8728
  -1.3952183723449707,
8729
- -0.4435224235057831,
8730
  -0.22929400205612183,
8731
  -0.5126907825469971,
8732
  -0.6773481965065002,
@@ -9573,7 +9573,7 @@
9573
  1.055336594581604,
9574
  0.8473005890846252,
9575
  -1.273455262184143,
9576
- -0.23792915046215057,
9577
  0.3188213109970093,
9578
  -0.15083664655685425,
9579
  0.3701872229576111,
@@ -9647,7 +9647,7 @@
9647
  0.7953003644943237,
9648
  -0.23510213196277618,
9649
  -0.29008710384368896,
9650
- 0.6497897505760193,
9651
  1.1628128290176392,
9652
  0.7097070813179016,
9653
  -1.0151997804641724,
@@ -9913,7 +9913,7 @@
9913
  -0.653823733329773,
9914
  0.6760683655738831,
9915
  -0.9735672473907471,
9916
- 0.10808220505714417,
9917
  -0.11430589109659195,
9918
  -1.5456750392913818,
9919
  -0.6651865243911743,
@@ -10387,7 +10387,7 @@
10387
  0.32844746112823486,
10388
  0.05484013631939888,
10389
  0.9166463017463684,
10390
- -0.3650572597980499,
10391
  1.2935667037963867,
10392
  1.014633297920227,
10393
  -0.8653355240821838,
@@ -10678,7 +10678,7 @@
10678
  0.7019861340522766,
10679
  0.4363502264022827,
10680
  0.3687651455402374,
10681
- 0.17155057191848755,
10682
  -0.7631089091300964,
10683
  -0.4769899845123291,
10684
  0.6684845685958862,
 
354
  -1.6124330759048462,
355
  -0.078035868704319,
356
  0.44529786705970764,
357
+ 0.5359243770602205,
358
  -0.6640201210975647,
359
  -0.21262575685977936,
360
  -0.7201595306396484,
 
2112
  0.29464787244796753,
2113
  -0.3169209063053131,
2114
  0.025695936754345894,
2115
+ -0.5670601584701538,
2116
  0.6935233473777771,
2117
  -0.43925511837005615,
2118
  -0.3269723653793335,
 
3903
  -0.9911938309669495,
3904
  -0.9258748888969421,
3905
  -0.13451455533504486,
3906
+ -0.7060802200317383,
3907
  0.0878990963101387,
3908
  -1.1640653610229492,
3909
  1.485425353050232,
 
4070
  0.2257869690656662,
4071
  1.0439108610153198,
4072
  -1.3952183723449707,
4073
+ -0.4435224237060831,
4074
  -0.22929400205612183,
4075
  -0.5126907825469971,
4076
  -0.6773481965065002,
 
4794
  -1.087576150894165,
4795
  -0.5675505995750427,
4796
  -0.36857736110687256,
4797
+ -0.28277060673454285,
4798
  0.6219515204429626,
4799
  0.8982294797897339,
4800
  -0.07706651091575623,
 
4902
  0.15682698786258698,
4903
  -0.4430997371673584,
4904
  0.34874892234802246,
4905
+ 0.7060200789451599,
4906
  -0.0231634471565485,
4907
  0.045041270554065704,
4908
  -1.0134400129318237,
 
5082
  -0.2536025047302246,
5083
  0.3939010798931122,
5084
  1.2939178943634033,
5085
+ 0.25864706067822266,
5086
  -0.571262538433075,
5087
  -0.010962972417473793,
5088
  0.4513074457645416,
 
6352
  -0.06419584900140762,
6353
  -0.686537504196167,
6354
  -0.9504846930503845,
6355
+ 0.3418706087849426,
6356
  -0.2970084846019745,
6357
  1.1086839437484741,
6358
  -0.38216742873191833,
 
6686
  -0.23209452629089355,
6687
  0.762040913105011,
6688
  -0.013421122916042805,
6689
+ -1.157570603348999,
6690
  0.19242359697818756,
6691
  -1.0599182844161987,
6692
  0.45151132345199585,
 
6948
  -1.2392604351043701,
6949
  0.3508192002773285,
6950
  0.650444507598877,
6951
+ 0.21912307060048798,
6952
  -0.6795974969863892,
6953
  -0.5976784229278564,
6954
  -0.6550567150115967,
 
8559
  -0.9911938309669495,
8560
  -0.9258748888969421,
8561
  -0.13451455533504486,
8562
+ -0.7060802200317383,
8563
  0.0878990963101387,
8564
  -1.1640653610229492,
8565
  1.485425353050232,
 
8726
  0.2257869690656662,
8727
  1.0439108610153198,
8728
  -1.3952183723449707,
8729
+ -0.4435224237060831,
8730
  -0.22929400205612183,
8731
  -0.5126907825469971,
8732
  -0.6773481965065002,
 
9573
  1.055336594581604,
9574
  0.8473005890846252,
9575
  -1.273455262184143,
9576
+ -0.23792915046217060,
9577
  0.3188213109970093,
9578
  -0.15083664655685425,
9579
  0.3701872229576111,
 
9647
  0.7953003644943237,
9648
  -0.23510213196277618,
9649
  -0.29008710384368896,
9650
+ 0.6497897706060193,
9651
  1.1628128290176392,
9652
  0.7097070813179016,
9653
  -1.0151997804641724,
 
9913
  -0.653823733329773,
9914
  0.6760683655738831,
9915
  -0.9735672473907471,
9916
+ 0.10808220706014417,
9917
  -0.11430589109659195,
9918
  -1.5456750392913818,
9919
  -0.6651865243911743,
 
10387
  0.32844746112823486,
10388
  0.05484013631939888,
10389
  0.9166463017463684,
10390
+ -0.3670602597980499,
10391
  1.2935667037963867,
10392
  1.014633297920227,
10393
  -0.8653355240821838,
 
10678
  0.7019861340522766,
10679
  0.4363502264022827,
10680
  0.3687651455402374,
10681
+ 0.17157060191848755,
10682
  -0.7631089091300964,
10683
  -0.4769899845123291,
10684
  0.6684845685958862,
tests/THERAPY_BOOKING_README.md CHANGED
@@ -25,7 +25,7 @@ AIMHSA is an advanced AI-powered mental health support system specifically desig
25
  ## πŸ—οΈ System Architecture
26
 
27
  ### Backend (Flask API)
28
- - **Port**: 5057
29
  - **Database**: SQLite with extended schema
30
  - **AI Models**: Ollama (llama3.2:3b for chat, nomic-embed-text for embeddings)
31
  - **Risk Assessment**: Multi-layered analysis (pattern matching + AI analysis)
 
25
  ## πŸ—οΈ System Architecture
26
 
27
  ### Backend (Flask API)
28
+ - **Port**: 7060
29
  - **Database**: SQLite with extended schema
30
  - **AI Models**: Ollama (llama3.2:3b for chat, nomic-embed-text for embeddings)
31
  - **Risk Assessment**: Multi-layered analysis (pattern matching + AI analysis)
tests/run_simple_aimhsa.py CHANGED
@@ -63,7 +63,7 @@ class ChatBotHandler(SimpleHTTPRequestHandler):
63
  except Exception as e:
64
  self.send_error(500, f"Server error: {str(e)}")
65
 
66
- def run_simple_backend(api_port=5057):
67
  """Run the simplified Flask backend"""
68
  print(f"πŸš€ Starting Simple AIMHSA Backend on port {api_port}...")
69
 
@@ -116,7 +116,7 @@ def run_frontend(frontend_port=8000):
116
 
117
  def main():
118
  parser = argparse.ArgumentParser(description="Simple AIMHSA Launcher")
119
- parser.add_argument("--api-port", "-a", type=int, default=5057, help="Backend port (default: 5057)")
120
  parser.add_argument("--frontend-port", "-f", type=int, default=8000, help="Frontend port (default: 8000)")
121
  parser.add_argument("--backend-only", "-b", action="store_true", help="Run only backend")
122
  parser.add_argument("--frontend-only", "-w", action="store_true", help="Run only frontend")
 
63
  except Exception as e:
64
  self.send_error(500, f"Server error: {str(e)}")
65
 
66
+ def run_simple_backend(api_port=7060):
67
  """Run the simplified Flask backend"""
68
  print(f"πŸš€ Starting Simple AIMHSA Backend on port {api_port}...")
69
 
 
116
 
117
  def main():
118
  parser = argparse.ArgumentParser(description="Simple AIMHSA Launcher")
119
+ parser.add_argument("--api-port", "-a", type=int, default=7060, help="Backend port (default: 7060)")
120
  parser.add_argument("--frontend-port", "-f", type=int, default=8000, help="Frontend port (default: 8000)")
121
  parser.add_argument("--backend-only", "-b", action="store_true", help="Run only backend")
122
  parser.add_argument("--frontend-only", "-w", action="store_true", help="Run only frontend")
tests/test_admin_inputs.html CHANGED
@@ -21,7 +21,7 @@
21
  }
22
  .form-control {
23
  background-color: #fff !important;
24
- color: #495057 !important;
25
  border: 1px solid #ced4da !important;
26
  pointer-events: auto !important;
27
  user-select: text !important;
 
21
  }
22
  .form-control {
23
  background-color: #fff !important;
24
+ color: #497060 !important;
25
  border: 1px solid #ced4da !important;
26
  pointer-events: auto !important;
27
  user-select: text !important;
tests/test_field_errors.html CHANGED
@@ -129,7 +129,7 @@
129
  <h2>πŸ§ͺ How to Test</h2>
130
  <ol>
131
  <li><strong>Start the servers:</strong>
132
- <br><code>python app.py</code> (Backend on port 5057)
133
  <br><code>python run_frontend.py</code> (Frontend on port 8000)
134
  </li>
135
  <li><strong>Open registration form:</strong> <code>http://localhost:8000/register</code></li>
 
129
  <h2>πŸ§ͺ How to Test</h2>
130
  <ol>
131
  <li><strong>Start the servers:</strong>
132
+ <br><code>python app.py</code> (Backend on port 7060)
133
  <br><code>python run_frontend.py</code> (Frontend on port 8000)
134
  </li>
135
  <li><strong>Open registration form:</strong> <code>http://localhost:8000/register</code></li>
tests/test_field_specific_errors.html CHANGED
@@ -130,7 +130,7 @@
130
  <h2>πŸš€ How to Test</h2>
131
  <ol>
132
  <li><strong>Start the servers:</strong>
133
- <br><code>python app.py</code> (Backend on port 5057)
134
  <br><code>python run_frontend.py</code> (Frontend on port 8000)
135
  </li>
136
  <li><strong>Open registration form:</strong> <code>http://localhost:8000/register</code></li>
 
130
  <h2>πŸš€ How to Test</h2>
131
  <ol>
132
  <li><strong>Start the servers:</strong>
133
+ <br><code>python app.py</code> (Backend on port 7060)
134
  <br><code>python run_frontend.py</code> (Frontend on port 8000)
135
  </li>
136
  <li><strong>Open registration form:</strong> <code>http://localhost:8000/register</code></li>
tests/test_input_functionality.html CHANGED
@@ -20,7 +20,7 @@
20
  }
21
  .form-control {
22
  background-color: #fff !important;
23
- color: #495057 !important;
24
  border: 1px solid #ced4da !important;
25
  }
26
  .form-control:focus {
 
20
  }
21
  .form-control {
22
  background-color: #fff !important;
23
+ color: #497060 !important;
24
  border: 1px solid #ced4da !important;
25
  }
26
  .form-control:focus {
tests/test_professional_form.html CHANGED
@@ -29,7 +29,7 @@
29
  .form-control {
30
  background-color: #fff !important;
31
  border: 1px solid #ced4da !important;
32
- color: #495057 !important;
33
  }
34
  .form-control:focus {
35
  border-color: #80bdff !important;
@@ -43,7 +43,7 @@
43
  }
44
  .modal-body .form-control {
45
  background-color: #fff !important;
46
- color: #495057 !important;
47
  }
48
  </style>
49
  </head>
 
29
  .form-control {
30
  background-color: #fff !important;
31
  border: 1px solid #ced4da !important;
32
+ color: #497060 !important;
33
  }
34
  .form-control:focus {
35
  border-color: #80bdff !important;
 
43
  }
44
  .modal-body .form-control {
45
  background-color: #fff !important;
46
+ color: #497060 !important;
47
  }
48
  </style>
49
  </head>
tests/test_registration_validation.html CHANGED
@@ -145,7 +145,7 @@
145
  <div class="test-section">
146
  <h2>πŸš€ How to Test</h2>
147
  <ol>
148
- <li>Start the AIMHSA server: <code>python app.py</code> (port 5057)</li>
149
  <li>Start the frontend server: <code>python run_frontend.py</code> (port 8000)</li>
150
  <li>Open <code>http://localhost:8000/register</code> in your browser</li>
151
  <li>Test each field with valid and invalid inputs</li>
 
145
  <div class="test-section">
146
  <h2>πŸš€ How to Test</h2>
147
  <ol>
148
+ <li>Start the AIMHSA server: <code>python app.py</code> (port 7060)</li>
149
  <li>Start the frontend server: <code>python run_frontend.py</code> (port 8000)</li>
150
  <li>Open <code>http://localhost:8000/register</code> in your browser</li>
151
  <li>Test each field with valid and invalid inputs</li>
tests/test_user_information_flow.py CHANGED
@@ -44,7 +44,7 @@ def test_api_endpoint(method: str, endpoint: str, data: Optional[Dict] = None, e
44
 
45
  except requests.exceptions.ConnectionError:
46
  print(f"❌ CONNECTION ERROR: Could not connect to {API_BASE}")
47
- print(" Make sure the Flask app is running on port 5057")
48
  return None
49
  except Exception as e:
50
  print(f"❌ ERROR: {method} {endpoint} - {str(e)}")
 
44
 
45
  except requests.exceptions.ConnectionError:
46
  print(f"❌ CONNECTION ERROR: Could not connect to {API_BASE}")
47
+ print(" Make sure the Flask app is running on port 7060")
48
  return None
49
  except Exception as e:
50
  print(f"❌ ERROR: {method} {endpoint} - {str(e)}")
working_api.py CHANGED
@@ -113,5 +113,5 @@ if __name__ == '__main__':
113
  print("RAG System: Ready")
114
  print("Embeddings: Loaded")
115
  print("Models: Available via OpenAI Client")
116
- app.run(host='0.0.0.0', port=5057, debug=True)
117
 
 
113
  print("RAG System: Ready")
114
  print("Embeddings: Loaded")
115
  print("Models: Available via OpenAI Client")
116
+ app.run(host='0.0.0.0', port=7060, debug=True)
117