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