Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Commit
•
164f0a5
1
Parent(s):
5f5638d
Update app2.py
Browse files
app2.py
CHANGED
@@ -7,6 +7,13 @@ from sqlalchemy.orm import sessionmaker
|
|
7 |
from models import Article # Assuming the Article model is defined in models.py
|
8 |
import logging
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
logger = logging.getLogger(__name__)
|
11 |
|
12 |
# This will constantly check the database status and update the textbox
|
|
|
7 |
from models import Article # Assuming the Article model is defined in models.py
|
8 |
import logging
|
9 |
|
10 |
+
import os
|
11 |
+
import sys
|
12 |
+
|
13 |
+
current_dir = os.path.dirname(os.path.realpath(__file__))
|
14 |
+
parent_dir = os.path.abspath(os.path.join(current_dir, ".."))
|
15 |
+
sys.path.insert(0, parent_dir)
|
16 |
+
|
17 |
logger = logging.getLogger(__name__)
|
18 |
|
19 |
# This will constantly check the database status and update the textbox
|