Spaces:
Sleeping
Sleeping
fix import
Browse files
GraphRouter_eval/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
# GraphRouter_eval package
|
GraphRouter_eval/data_processing/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
# data_processing package
|
GraphRouter_eval/model/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
# model package
|
demo.py
CHANGED
@@ -70,7 +70,17 @@ sys.path.append(os.path.join(os.path.dirname(__file__), 'GraphRouter_eval/model'
|
|
70 |
sys.path.append(os.path.join(os.path.dirname(__file__), 'GraphRouter_eval/data_processing'))
|
71 |
sys.path.append(os.path.join(os.path.dirname(__file__), 'GraphRouter_eval'))
|
72 |
try:
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
GRAPH_ROUTER_AVAILABLE = True
|
75 |
print("✅ Graph router successfully imported")
|
76 |
except ImportError as e:
|
|
|
70 |
sys.path.append(os.path.join(os.path.dirname(__file__), 'GraphRouter_eval/data_processing'))
|
71 |
sys.path.append(os.path.join(os.path.dirname(__file__), 'GraphRouter_eval'))
|
72 |
try:
|
73 |
+
# Import the GraphRouter_eval package
|
74 |
+
import sys
|
75 |
+
import os
|
76 |
+
|
77 |
+
# Add the parent directory to Python path so we can import GraphRouter_eval as a package
|
78 |
+
current_dir = os.path.dirname(__file__)
|
79 |
+
if current_dir not in sys.path:
|
80 |
+
sys.path.insert(0, current_dir)
|
81 |
+
|
82 |
+
# Import the required modules
|
83 |
+
from GraphRouter_eval.model.multi_task_graph_router import graph_router_prediction
|
84 |
GRAPH_ROUTER_AVAILABLE = True
|
85 |
print("✅ Graph router successfully imported")
|
86 |
except ImportError as e:
|