Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -204,6 +204,10 @@ def create_ui():
|
|
204 |
overflow-y: auto !important;
|
205 |
max-height: calc((100vh - 200px) / 5) !important;
|
206 |
}
|
|
|
|
|
|
|
|
|
207 |
.full-height {
|
208 |
height: calc(100vh - 200px) !important;
|
209 |
overflow-y: auto !important;
|
@@ -245,29 +249,31 @@ def create_ui():
|
|
245 |
with gr.Column(scale=6): # 왼쪽 60%
|
246 |
url_input = gr.Textbox(label="HuggingFace Space URL")
|
247 |
analyze_button = gr.Button("분석")
|
248 |
-
|
249 |
with gr.Group(elem_classes="output-group scroll-lock"):
|
250 |
summary_output = gr.Markdown(label="요약 (3줄 이내)")
|
251 |
-
|
252 |
with gr.Group(elem_classes="output-group scroll-lock"):
|
253 |
analysis_output = gr.Markdown(label="분석")
|
254 |
-
|
255 |
with gr.Group(elem_classes="output-group scroll-lock"):
|
256 |
usage_output = gr.Markdown(label="사용법")
|
257 |
-
|
258 |
-
with gr.Group(elem_classes="output-group scroll
|
259 |
-
tree_view_output = gr.Textbox(label="파일 구조 (Tree View)", lines=
|
260 |
-
|
261 |
with gr.Column(scale=4): # 오른쪽 40%
|
262 |
with gr.Group(elem_classes="output-group full-height"):
|
263 |
code_tabs = gr.Tabs()
|
264 |
with code_tabs:
|
265 |
app_py_tab = gr.TabItem("app.py")
|
266 |
with app_py_tab:
|
267 |
-
app_py_content = gr.Code(language="python", label="app.py", lines=30)
|
268 |
requirements_tab = gr.TabItem("requirements.txt")
|
269 |
with requirements_tab:
|
270 |
-
requirements_content = gr.Textbox(label="requirements.txt", lines=30)
|
|
|
|
|
271 |
|
272 |
with gr.TabItem("AI 코딩"):
|
273 |
chatbot = gr.Chatbot(label="대화")
|
|
|
204 |
overflow-y: auto !important;
|
205 |
max-height: calc((100vh - 200px) / 5) !important;
|
206 |
}
|
207 |
+
.tree-view-scroll {
|
208 |
+
overflow-y: auto !important;
|
209 |
+
max-height: calc((100vh - 200px) / 2) !important; /* 트리 뷰 높이 증가 */
|
210 |
+
}
|
211 |
.full-height {
|
212 |
height: calc(100vh - 200px) !important;
|
213 |
overflow-y: auto !important;
|
|
|
249 |
with gr.Column(scale=6): # 왼쪽 60%
|
250 |
url_input = gr.Textbox(label="HuggingFace Space URL")
|
251 |
analyze_button = gr.Button("분석")
|
252 |
+
|
253 |
with gr.Group(elem_classes="output-group scroll-lock"):
|
254 |
summary_output = gr.Markdown(label="요약 (3줄 이내)")
|
255 |
+
|
256 |
with gr.Group(elem_classes="output-group scroll-lock"):
|
257 |
analysis_output = gr.Markdown(label="분석")
|
258 |
+
|
259 |
with gr.Group(elem_classes="output-group scroll-lock"):
|
260 |
usage_output = gr.Markdown(label="사용법")
|
261 |
+
|
262 |
+
with gr.Group(elem_classes="output-group tree-view-scroll"): # 트리 뷰 스크롤 추가
|
263 |
+
tree_view_output = gr.Textbox(label="파일 구조 (Tree View)", lines=30)
|
264 |
+
|
265 |
with gr.Column(scale=4): # 오른쪽 40%
|
266 |
with gr.Group(elem_classes="output-group full-height"):
|
267 |
code_tabs = gr.Tabs()
|
268 |
with code_tabs:
|
269 |
app_py_tab = gr.TabItem("app.py")
|
270 |
with app_py_tab:
|
271 |
+
app_py_content = gr.Code(language="python", label="app.py", lines=30, elem_classes="full-height") # 스크롤 추가
|
272 |
requirements_tab = gr.TabItem("requirements.txt")
|
273 |
with requirements_tab:
|
274 |
+
requirements_content = gr.Textbox(label="requirements.txt", lines=30, elem_classes="full-height") # 스크롤 추가
|
275 |
+
|
276 |
+
|
277 |
|
278 |
with gr.TabItem("AI 코딩"):
|
279 |
chatbot = gr.Chatbot(label="대화")
|