Mohammad Wasil commited on
Commit
468ab63
·
1 Parent(s): b2b58be

Fix frontend connection: use relative API path

Browse files
Files changed (2) hide show
  1. frontend/js/app.js +3 -3
  2. requirements.txt +1 -0
frontend/js/app.js CHANGED
@@ -1,7 +1,7 @@
1
- // Configuration
2
  const CONFIG = {
3
- API_BASE_URL: 'http://localhost:8000',
4
- API_ENDPOINT: '/api/v1/chat/sync',
5
  MESSAGE_BATCH_SIZE: 10,
6
  MAX_MESSAGE_LENGTH: 500,
7
  RETRY_ATTEMPTS: 3,
 
1
+ // Configuration for Hugging Face Deployment
2
  const CONFIG = {
3
+ API_BASE_URL: '',
4
+ API_ENDPOINT: '/api/v1/chat',
5
  MESSAGE_BATCH_SIZE: 10,
6
  MAX_MESSAGE_LENGTH: 500,
7
  RETRY_ATTEMPTS: 3,
requirements.txt CHANGED
@@ -31,3 +31,4 @@ prometheus-client==0.23.1
31
  #loguru
32
  loguru==0.7.3
33
  datasets
 
 
31
  #loguru
32
  loguru==0.7.3
33
  datasets
34
+ pysqlite3-binary