Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,12 +60,14 @@ iface_html = gr.Interface(
|
|
60 |
outputs=gr.Textbox(label="์คํฌ๋ฉ๋ HTML ์ฝํ
์ธ ")
|
61 |
)
|
62 |
|
|
|
63 |
iface_script = gr.Interface(
|
64 |
-
fn=gradio_fetch_and_format_script,
|
65 |
-
inputs=gr.Textbox(label="URL์ ์
๋ ฅํ์ธ์"),
|
66 |
-
outputs=gr.Textbox(label="์์์ฉ ์คํฌ๋ฆฝํธ")
|
67 |
)
|
68 |
|
|
|
69 |
# ๋ ์ธํฐํ์ด์ค๋ฅผ ํญ์ผ๋ก ๊ตฌ์ฑํ์ฌ ์คํ
|
70 |
iface_combined = gr.TabbedInterface([iface_html, iface_script],
|
71 |
["HTML ๋ณด๊ธฐ", "์คํฌ๋ฆฝํธ ์์ฑ"])
|
|
|
60 |
outputs=gr.Textbox(label="์คํฌ๋ฉ๋ HTML ์ฝํ
์ธ ")
|
61 |
)
|
62 |
|
63 |
+
# Gradio ์ธํฐํ์ด์ค ๊ตฌ์ฑ
|
64 |
iface_script = gr.Interface(
|
65 |
+
fn=gradio_fetch_and_format_script, # ์ด ํจ์๊ฐ ํธ์ถ๋์ด์ผ ํจ
|
66 |
+
inputs=gr.Textbox(label="URL์ ์
๋ ฅํ์ธ์"), # ์
๋ ฅ ํ๋
|
67 |
+
outputs=gr.Textbox(label="์์์ฉ ์คํฌ๋ฆฝํธ") # ์ถ๋ ฅ ํ๋
|
68 |
)
|
69 |
|
70 |
+
|
71 |
# ๋ ์ธํฐํ์ด์ค๋ฅผ ํญ์ผ๋ก ๊ตฌ์ฑํ์ฌ ์คํ
|
72 |
iface_combined = gr.TabbedInterface([iface_html, iface_script],
|
73 |
["HTML ๋ณด๊ธฐ", "์คํฌ๋ฆฝํธ ์์ฑ"])
|