Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
import os
|
2 |
-
import
|
3 |
|
4 |
-
#
|
5 |
-
|
|
|
|
|
6 |
|
7 |
-
#
|
8 |
-
|
|
|
|
|
|
1 |
import os
|
2 |
+
import sys
|
3 |
|
4 |
+
# Add the 'app' directory to sys.path
|
5 |
+
app_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app')
|
6 |
+
if app_dir not in sys.path:
|
7 |
+
sys.path.append(app_dir)
|
8 |
|
9 |
+
# Import and run FinalApp.py
|
10 |
+
import FinalApp
|
11 |
+
|
12 |
+
FinalApp.main() # Call the main function directly if defined
|