Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,12 @@ def check_connection(url):
|
|
13 |
return "Connection failed"
|
14 |
|
15 |
# ๊ทธ๋ผ๋์ค UI ์ ์
|
16 |
-
url_input = gr.
|
17 |
-
output_text = gr.
|
18 |
|
19 |
# ๊ทธ๋ผ๋์ค ์ ํ๋ฆฌ์ผ์ด์
์คํ
|
20 |
title = "URL Connection Checker"
|
21 |
description = "Enter a URL and click 'Check Connection' to see the HTTP status code and connection status."
|
22 |
examples = [["https://seawolf2357-fastgpt.hf.space/"]]
|
23 |
-
timer_input = gr.
|
24 |
gr.Interface(fn=check_connection, inputs=url_input, outputs=output_text, title=title, description=description, examples=examples).launch(inline=False, inbrowser=True, share=True)
|
|
|
13 |
return "Connection failed"
|
14 |
|
15 |
# ๊ทธ๋ผ๋์ค UI ์ ์
|
16 |
+
url_input = gr.Interface.Textbox(label="URL", placeholder="Enter the URL to check")
|
17 |
+
output_text = gr.Interface.Textbox(label="Connection Status")
|
18 |
|
19 |
# ๊ทธ๋ผ๋์ค ์ ํ๋ฆฌ์ผ์ด์
์คํ
|
20 |
title = "URL Connection Checker"
|
21 |
description = "Enter a URL and click 'Check Connection' to see the HTTP status code and connection status."
|
22 |
examples = [["https://seawolf2357-fastgpt.hf.space/"]]
|
23 |
+
timer_input = gr.Interface.Slider(minimum=1, maximum=60, default=5, label="Check Interval (minutes)")
|
24 |
gr.Interface(fn=check_connection, inputs=url_input, outputs=output_text, title=title, description=description, examples=examples).launch(inline=False, inbrowser=True, share=True)
|