ใ……ใ…Žใ…‡ commited on
Commit
2bb82b6
ยท
1 Parent(s): 225416b

fix: use Markdown image link with /file/ path instead of gr.Image component

Browse files
Files changed (1) hide show
  1. 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
- #architecture_diagram {
125
- width: 150px !important;
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: 0 auto !important;
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
+ ![System Architecture](/file/CodeWeaver/ui/assets/architecture.svg)
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  CodeWeaver๋Š” ๋‹จ์ˆœํ•œ LLM ํ˜ธ์ถœ์„ ๋„˜์–ด, ์Šค์Šค๋กœ ๊ณ„ํšํ•˜๊ณ  ๊ฒ€์ฆํ•˜๋Š” **LangGraph ๊ธฐ๋ฐ˜ ์ž์œจ ์—์ด์ „ํŠธ**์ž…๋‹ˆ๋‹ค.
342
  - **Planning & Dynamic Routing**: ์งˆ๋ฌธ ์˜๋„๋ฅผ ๋ถ„์„ํ•˜์—ฌ ๋‹จ์ˆœ ๋Œ€ํ™”, ๊ธฐ์ˆ  ์งˆ๋ฌธ, ๋‹ค์ค‘ ์งˆ๋ฌธ์œผ๋กœ ๋ถ„๋ฅ˜ํ•˜๊ณ  ์ตœ์ ์˜ ๊ฒฝ๋กœ๋กœ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
343
  - **Map-Reduce**: ๋ณตํ•ฉ์ ์ธ ์งˆ๋ฌธ์„ ๋…๋ฆฝ๋œ ํ•˜์œ„ ์ž‘์—…์œผ๋กœ ๋ถ„ํ•ดํ•˜์—ฌ ๋ณ‘๋ ฌ ์ฒ˜๋ฆฌ ํ›„, ๊ฒฐ๊ณผ๋ฅผ ํ•˜๋‚˜๋กœ ํ†ตํ•ฉํ•ฉ๋‹ˆ๋‹ค.