seawolf2357 commited on
Commit
b281c94
ยท
verified ยท
1 Parent(s): f49559c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,12 +13,12 @@ def check_connection(url):
13
  return "Connection failed"
14
 
15
  # ๊ทธ๋ผ๋””์˜ค UI ์ •์˜
16
- url_input = gr.inputs.Textbox(label="URL", placeholder="Enter the URL to check")
17
- output_text = gr.outputs.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.inputs.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)
 
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)