We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac6618 commit c37a337Copy full SHA for c37a337
webui/app.py
@@ -2,6 +2,7 @@
2
import os
3
import sys
4
import tempfile
5
+from importlib.resources import files
6
7
import gradio as gr
8
import pandas as pd
@@ -15,7 +16,8 @@
15
16
from webui.test_api import test_api_connection
17
18
# pylint: disable=wrong-import-position
-root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
19
+# root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
20
+root_dir = files("webui").parent
21
sys.path.append(root_dir)
22
23
from graphgen.graphgen import GraphGen
0 commit comments