Spaces:
Sleeping
Sleeping
ใ
ใ
ใ
commited on
Commit ยท
2bb82b6
1
Parent(s): 225416b
fix: use Markdown image link with /file/ path instead of gr.Image component
Browse files- CodeWeaver/ui/app.py +5 -54
CodeWeaver/ui/app.py
CHANGED
|
@@ -120,51 +120,16 @@ button[data-testid="submit-button"][aria-label*="Stop"] {
|
|
| 120 |
visibility: hidden !important;
|
| 121 |
opacity: 0 !important;
|
| 122 |
}
|
| 123 |
-
/* ์ํคํ
์ฒ ๋ค์ด์ด๊ทธ๋จ ์ด๋ฏธ์ง ํฌ๊ธฐ ์กฐ์ */
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
height: 300px !important;
|
| 127 |
-
max-width: 150px !important;
|
| 128 |
-
max-height: 300px !important;
|
| 129 |
-
overflow: auto !important;
|
| 130 |
-
box-sizing: border-box !important;
|
| 131 |
-
margin: 0 auto !important;
|
| 132 |
-
}
|
| 133 |
-
/* Gradio Image ์ปดํฌ๋ํธ์ ๋ค๋น๊ฒ์ด์
๋ฒํผ ์จ๊ธฐ๊ธฐ */
|
| 134 |
-
#architecture_diagram button,
|
| 135 |
-
#architecture_diagram .image-nav,
|
| 136 |
-
#architecture_diagram .nav-button,
|
| 137 |
-
#architecture_diagram [aria-label*="previous"],
|
| 138 |
-
#architecture_diagram [aria-label*="next"],
|
| 139 |
-
#architecture_diagram [aria-label*="Previous"],
|
| 140 |
-
#architecture_diagram [aria-label*="Next"],
|
| 141 |
-
#architecture_diagram .gallery-nav,
|
| 142 |
-
#architecture_diagram .gallery-controls {
|
| 143 |
-
display: none !important;
|
| 144 |
-
visibility: hidden !important;
|
| 145 |
-
opacity: 0 !important;
|
| 146 |
-
pointer-events: none !important;
|
| 147 |
-
}
|
| 148 |
-
#architecture_diagram > div,
|
| 149 |
-
#architecture_diagram > div > div {
|
| 150 |
-
width: 150px !important;
|
| 151 |
-
height: 300px !important;
|
| 152 |
-
max-width: 150px !important;
|
| 153 |
-
max-height: 300px !important;
|
| 154 |
-
overflow: auto !important;
|
| 155 |
-
box-sizing: border-box !important;
|
| 156 |
-
}
|
| 157 |
-
#architecture_diagram img,
|
| 158 |
-
#architecture_diagram svg,
|
| 159 |
-
#architecture_diagram img[src],
|
| 160 |
-
#architecture_diagram svg[src] {
|
| 161 |
width: 150px !important;
|
| 162 |
height: auto !important;
|
| 163 |
max-width: 150px !important;
|
| 164 |
max-height: 300px !important;
|
| 165 |
object-fit: contain !important;
|
| 166 |
display: block !important;
|
| 167 |
-
margin:
|
| 168 |
}
|
| 169 |
"""
|
| 170 |
|
|
@@ -371,22 +336,8 @@ def create_demo() -> gr.Blocks:
|
|
| 371 |
|
| 372 |
#### ์์คํ
์ํคํ
์ฒ ๋ค์ด์ด๊ทธ๋จ
|
| 373 |
|
| 374 |
-
|
| 375 |
|
| 376 |
-
# SVG ์ด๋ฏธ์ง ์ฝ์
|
| 377 |
-
svg_path = Path(__file__).parent / "assets" / "architecture.svg"
|
| 378 |
-
if svg_path.exists():
|
| 379 |
-
gr.Image(
|
| 380 |
-
value=str(svg_path),
|
| 381 |
-
label="์์คํ
์ํคํ
์ฒ",
|
| 382 |
-
show_label=False,
|
| 383 |
-
container=False,
|
| 384 |
-
elem_id="architecture_diagram"
|
| 385 |
-
)
|
| 386 |
-
else:
|
| 387 |
-
gr.Markdown("โ ๏ธ ์ํคํ
์ฒ ๋ค์ด์ด๊ทธ๋จ์ ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค.")
|
| 388 |
-
|
| 389 |
-
gr.Markdown("""
|
| 390 |
CodeWeaver๋ ๋จ์ํ LLM ํธ์ถ์ ๋์ด, ์ค์ค๋ก ๊ณํํ๊ณ ๊ฒ์ฆํ๋ **LangGraph ๊ธฐ๋ฐ ์์จ ์์ด์ ํธ**์
๋๋ค.
|
| 391 |
- **Planning & Dynamic Routing**: ์ง๋ฌธ ์๋๋ฅผ ๋ถ์ํ์ฌ ๋จ์ ๋ํ, ๊ธฐ์ ์ง๋ฌธ, ๋ค์ค ์ง๋ฌธ์ผ๋ก ๋ถ๋ฅํ๊ณ ์ต์ ์ ๊ฒฝ๋ก๋ก ์คํํฉ๋๋ค.
|
| 392 |
- **Map-Reduce**: ๋ณตํฉ์ ์ธ ์ง๋ฌธ์ ๋
๋ฆฝ๋ ํ์ ์์
์ผ๋ก ๋ถํดํ์ฌ ๋ณ๋ ฌ ์ฒ๋ฆฌ ํ, ๊ฒฐ๊ณผ๋ฅผ ํ๋๋ก ํตํฉํฉ๋๋ค.
|
|
|
|
| 120 |
visibility: hidden !important;
|
| 121 |
opacity: 0 !important;
|
| 122 |
}
|
| 123 |
+
/* ์ํคํ
์ฒ ๋ค์ด์ด๊ทธ๋จ ์ด๋ฏธ์ง ํฌ๊ธฐ ์กฐ์ (Markdown ๋ด๋ถ ์ด๋ฏธ์ง) */
|
| 124 |
+
.markdown img[alt="System Architecture"],
|
| 125 |
+
.markdown img[src*="architecture.svg"] {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
width: 150px !important;
|
| 127 |
height: auto !important;
|
| 128 |
max-width: 150px !important;
|
| 129 |
max-height: 300px !important;
|
| 130 |
object-fit: contain !important;
|
| 131 |
display: block !important;
|
| 132 |
+
margin: 10px auto !important;
|
| 133 |
}
|
| 134 |
"""
|
| 135 |
|
|
|
|
| 336 |
|
| 337 |
#### ์์คํ
์ํคํ
์ฒ ๋ค์ด์ด๊ทธ๋จ
|
| 338 |
|
| 339 |
+

|
| 340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
CodeWeaver๋ ๋จ์ํ LLM ํธ์ถ์ ๋์ด, ์ค์ค๋ก ๊ณํํ๊ณ ๊ฒ์ฆํ๋ **LangGraph ๊ธฐ๋ฐ ์์จ ์์ด์ ํธ**์
๋๋ค.
|
| 342 |
- **Planning & Dynamic Routing**: ์ง๋ฌธ ์๋๋ฅผ ๋ถ์ํ์ฌ ๋จ์ ๋ํ, ๊ธฐ์ ์ง๋ฌธ, ๋ค์ค ์ง๋ฌธ์ผ๋ก ๋ถ๋ฅํ๊ณ ์ต์ ์ ๊ฒฝ๋ก๋ก ์คํํฉ๋๋ค.
|
| 343 |
- **Map-Reduce**: ๋ณตํฉ์ ์ธ ์ง๋ฌธ์ ๋
๋ฆฝ๋ ํ์ ์์
์ผ๋ก ๋ถํดํ์ฌ ๋ณ๋ ฌ ์ฒ๋ฆฌ ํ, ๊ฒฐ๊ณผ๋ฅผ ํ๋๋ก ํตํฉํฉ๋๋ค.
|