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

Change database path and home icon path

Browse files
Files changed (3) hide show
  1. app.py +5 -4
  2. explorepage.html +1 -1
  3. search.html +1 -1
app.py CHANGED
@@ -32,11 +32,12 @@ app.add_middleware(
32
  allow_headers=["*"],
33
  )
34
 
35
- # Database configuration - UPDATE THESE PATHS
 
36
  DATABASE_CONFIG = {
37
- "triplets_db": "triplets_new.db",
38
- "definitions_db": "relations_new.db",
39
- "news_db": "cnnhealthnews2.db",
40
  "triplets_table": "triplets",
41
  "definitions_table": "relations",
42
  "head_column": "head_entity",
 
32
  allow_headers=["*"],
33
  )
34
 
35
+ # Database configuration
36
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
37
  DATABASE_CONFIG = {
38
+ "triplets_db": os.path.join(BASE_DIR, "triplets_new.db"),
39
+ "definitions_db": os.path.join(BASE_DIR, "relations_new.db"),
40
+ "news_db": os.path.join(BASE_DIR, "cnnhealthnews2.db"),
41
  "triplets_table": "triplets",
42
  "definitions_table": "relations",
43
  "head_column": "head_entity",
explorepage.html CHANGED
@@ -468,7 +468,7 @@
468
 
469
  function goHome() {
470
  // Navigate back to main page
471
- window.location.href = 'http://localhost:8000/'; // Adjust path as needed
472
  }
473
 
474
  function setupVisualizationSVG() {
 
468
 
469
  function goHome() {
470
  // Navigate back to main page
471
+ window.location.href = 'http://0.0.0.0:7860/'; // Adjust path as needed
472
  }
473
 
474
  function setupVisualizationSVG() {
search.html CHANGED
@@ -530,7 +530,7 @@
530
  }
531
 
532
  function goHome() {
533
- window.location.href = 'http://localhost:8000/';
534
  }
535
 
536
  function setupMiniGraph() {
 
530
  }
531
 
532
  function goHome() {
533
+ window.location.href = 'http://0.0.0.0:7860/';
534
  }
535
 
536
  function setupMiniGraph() {