Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ with gr.Blocks() as demo:
|
|
157 |
gr.Markdown("# 블로그 생성 및 네이버 블로그 스크래핑")
|
158 |
|
159 |
# 네이버 블로그 스크래핑 영역
|
160 |
-
with gr.
|
161 |
gr.Markdown("## 네이버 블로그 스크래핑")
|
162 |
scraper_input = gr.Textbox(label="네이버 블로그 URL")
|
163 |
scraper_output = gr.Textbox(label="스크래핑 결과", lines=10, interactive=False)
|
@@ -167,7 +167,7 @@ with gr.Blocks() as demo:
|
|
167 |
gr.Markdown("---")
|
168 |
|
169 |
# 블로그 생성기 영역
|
170 |
-
with gr.
|
171 |
gr.Markdown("## 블로그 생성기")
|
172 |
tone_radio = gr.Radio(
|
173 |
label="말투바꾸기",
|
@@ -183,11 +183,10 @@ with gr.Blocks() as demo:
|
|
183 |
inputs=[tone_radio, ref1, ref2, ref3],
|
184 |
outputs=output_box)
|
185 |
|
186 |
-
# 두 영역의 결과를 함께 확인할 수
|
187 |
gr.Markdown("### 최종 결과")
|
188 |
combined_output = gr.Textbox(label="최종 결과", lines=10, interactive=False)
|
189 |
|
190 |
-
# "생성하기" 버튼 클릭 시 블로그 생성 결과와 스크래핑 결과를 간단히 합쳐서 보여주는 예제 (선택 사항)
|
191 |
def combine_results(blog: str, scrape: str) -> str:
|
192 |
return f"블로그 생성 결과:\n{blog}\n\n네이버 블로그 스크래핑 결과:\n{scrape}"
|
193 |
|
|
|
157 |
gr.Markdown("# 블로그 생성 및 네이버 블로그 스크래핑")
|
158 |
|
159 |
# 네이버 블로그 스크래핑 영역
|
160 |
+
with gr.Column():
|
161 |
gr.Markdown("## 네이버 블로그 스크래핑")
|
162 |
scraper_input = gr.Textbox(label="네이버 블로그 URL")
|
163 |
scraper_output = gr.Textbox(label="스크래핑 결과", lines=10, interactive=False)
|
|
|
167 |
gr.Markdown("---")
|
168 |
|
169 |
# 블로그 생성기 영역
|
170 |
+
with gr.Column():
|
171 |
gr.Markdown("## 블로그 생성기")
|
172 |
tone_radio = gr.Radio(
|
173 |
label="말투바꾸기",
|
|
|
183 |
inputs=[tone_radio, ref1, ref2, ref3],
|
184 |
outputs=output_box)
|
185 |
|
186 |
+
# 두 영역의 결과를 함께 확인할 수 있도록 최종 결과 영역 추가 (선택 사항)
|
187 |
gr.Markdown("### 최종 결과")
|
188 |
combined_output = gr.Textbox(label="최종 결과", lines=10, interactive=False)
|
189 |
|
|
|
190 |
def combine_results(blog: str, scrape: str) -> str:
|
191 |
return f"블로그 생성 결과:\n{blog}\n\n네이버 블로그 스크래핑 결과:\n{scrape}"
|
192 |
|