EchaRz commited on
Commit
2534e3f
·
1 Parent(s): 21457b0

Change the API base

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. explorepage.html +1 -1
  3. search.html +1 -1
app.py CHANGED
@@ -621,7 +621,7 @@ if __name__ == "__main__":
621
  print(f"Definitions DB: {DATABASE_CONFIG['definitions_db']}")
622
 
623
  import uvicorn
624
- port = int(os.environ.get("PORT", 8000))
625
- uvicorn.run(app, host="localhost", port=port)
626
 
627
 
 
621
  print(f"Definitions DB: {DATABASE_CONFIG['definitions_db']}")
622
 
623
  import uvicorn
624
+ port = int(os.environ.get("PORT", 7860))
625
+ uvicorn.run(app, host="0.0.0.0", port=port)
626
 
627
 
explorepage.html CHANGED
@@ -426,7 +426,7 @@
426
 
427
  <script>
428
  // Configuration
429
- const API_BASE = 'http://localhost:8000/api';
430
 
431
  // Global variables
432
  let graphData = { nodes: [], edges: [] };
 
426
 
427
  <script>
428
  // Configuration
429
+ const API_BASE = 'http://0.0.0.0:7860/api';
430
 
431
  // Global variables
432
  let graphData = { nodes: [], edges: [] };
search.html CHANGED
@@ -484,7 +484,7 @@
484
 
485
  <script>
486
  // Configuration
487
- const API_BASE = 'http://localhost:8000/api';
488
 
489
  // Global variables
490
  let currentQuery = '';
 
484
 
485
  <script>
486
  // Configuration
487
+ const API_BASE = 'http://0.0.0.0:7860/api';
488
 
489
  // Global variables
490
  let currentQuery = '';