Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,8 @@ def gradio_fetch_and_format_script(url):
|
|
44 |
main_content = get_main_content(html_content)
|
45 |
return format_script(main_content)
|
46 |
|
|
|
|
|
47 |
# Gradio 인터페이스 구성
|
48 |
iface_html = gr.Interface(
|
49 |
fn=gradio_fetch_and_parse,
|
@@ -58,6 +60,6 @@ iface_script = gr.Interface(
|
|
58 |
)
|
59 |
|
60 |
# 두 인터페이스를 탭으로 구성하여 실행
|
61 |
-
iface_combined = gr.TabbedInterface(
|
62 |
-
|
63 |
-
iface_combined.launch()
|
|
|
44 |
main_content = get_main_content(html_content)
|
45 |
return format_script(main_content)
|
46 |
|
47 |
+
# 기존 함수들...
|
48 |
+
|
49 |
# Gradio 인터페이스 구성
|
50 |
iface_html = gr.Interface(
|
51 |
fn=gradio_fetch_and_parse,
|
|
|
60 |
)
|
61 |
|
62 |
# 두 인터페이스를 탭으로 구성하여 실행
|
63 |
+
iface_combined = gr.TabbedInterface([iface_html, iface_script],
|
64 |
+
["HTML 보기", "스크립트 생성"])
|
65 |
+
iface_combined.launch()
|