Spaces:
Sleeping
Sleeping
Change database path and home icon path
Browse files- app.py +5 -4
- explorepage.html +1 -1
- search.html +1 -1
app.py
CHANGED
|
@@ -32,11 +32,12 @@ app.add_middleware(
|
|
| 32 |
allow_headers=["*"],
|
| 33 |
)
|
| 34 |
|
| 35 |
-
# Database configuration
|
|
|
|
| 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://
|
| 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://
|
| 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() {
|