seawolf2357 commited on
Commit
3476805
ยท
verified ยท
1 Parent(s): bf141c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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 ๋ณด๊ธฐ", "์Šคํฌ๋ฆฝํŠธ ์ƒ์„ฑ"])