Spaces:
Running
Running
Update src/backend/gradio_workflowbuilder/__init__.py
Browse files
src/backend/gradio_workflowbuilder/__init__.py
CHANGED
@@ -1 +1,14 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pathlib import Path
|
2 |
+
|
3 |
+
# โจ Gradio 4 : ํด๋์ค ์์ฑ(js_path / css_path)๋ง ์ง์ ํ๋ฉด ๋!
|
4 |
+
from .workflowbuilder import WorkflowBuilder, WorkflowAnalyzer
|
5 |
+
|
6 |
+
COMP_DIR = Path(__file__).parent / "templates" / "component"
|
7 |
+
|
8 |
+
# โถ ํ๋ฐํธ์๋ ๋ฒ๋ค ๊ฒฝ๋ก ๋ฑ๋ก
|
9 |
+
WorkflowBuilder.js_path = str(COMP_DIR / "index.js")
|
10 |
+
# (์คํ์ผ ํ์ผ๋ช
์ ์ฐ๋ ๊ฒฝ์ฐ์๋ง)
|
11 |
+
WorkflowBuilder.css_path = str(COMP_DIR / "styles.css") # ์์ผ๋ฉด ์ด ์ค ์ญ์
|
12 |
+
|
13 |
+
# ์ธ๋ถ์์ import ํ ์ ์๋๋ก ๋
ธ์ถ
|
14 |
+
__all__ = ["WorkflowBuilder", "WorkflowAnalyzer"]
|