Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import requests
|
|
3 |
import logging
|
4 |
import threading
|
5 |
import time
|
|
|
6 |
|
7 |
# ๋ก๊น
์ค์
|
8 |
logging.basicConfig(level=logging.INFO)
|
@@ -19,7 +20,6 @@ footer { visibility: hidden; }
|
|
19 |
.status-normal { background-color: green; color: white; }
|
20 |
.status-abnormal { background-color: red; color: white; }
|
21 |
"""
|
22 |
-
|
23 |
# ๋ชจ๋ํฐ๋ง ๋์ ๋ชฉ๋ก
|
24 |
TARGETS = [
|
25 |
{"name": "[MON]๊ด๋ฆฌ-HOME", "url": "https://seawolf2357-bnews1.hf.space"},
|
@@ -75,7 +75,7 @@ TARGETS = [
|
|
75 |
{"name": "[HUGPU]EveryText: ๋ชจ๋ ๋ฌธ์๊ฐ ์ด๋ฏธ์ง ์์ฑ์ ๋ฐ์ ", "url": "https://fantos-EveryText.hf.space"},
|
76 |
{"name": "[HUGPU]๋ด ์ผ๊ตด ์ฌ์ง์ผ๋ก ์ด๋ฏธ์ง ์์ฑ I", "url": "https://aiqtech-kofaceid.hf.space"},
|
77 |
{"name": "[HUGPU]๋ด ์ผ๊ตด ์ฌ์ง์ผ๋ก ์ด๋ฏธ์ง ์์ฑ II", "url": "https://aiqtech-sdfacid.hf.space"},
|
78 |
-
|
79 |
|
80 |
{"name": "[HUGPU]ํ
์คํธ๋ก ๊ฐ์ฒด๋ง ์๋ผ๋ด๊ณ ๋ฐฐ๊ฒฝ ํฌ๋ช
ํ", "url": "https://fantos-textcutobject.hf.space"},
|
81 |
{"name": "[HUGPU]๋น๋์ค ์ธ์ QnA ์ฑ๋ด ", "url": "https://ginipick-vidiqa.hf.space"},
|
@@ -104,6 +104,16 @@ TARGETS = [
|
|
104 |
|
105 |
]
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
# URL ์ํ ํ์ธ ํจ์
|
109 |
def check_url_status(url):
|
@@ -156,4 +166,4 @@ def create_dashboard():
|
|
156 |
|
157 |
if __name__ == "__main__":
|
158 |
dashboard = create_dashboard()
|
159 |
-
dashboard.launch()
|
|
|
3 |
import logging
|
4 |
import threading
|
5 |
import time
|
6 |
+
from pydantic import BaseModel, create_model
|
7 |
|
8 |
# ๋ก๊น
์ค์
|
9 |
logging.basicConfig(level=logging.INFO)
|
|
|
20 |
.status-normal { background-color: green; color: white; }
|
21 |
.status-abnormal { background-color: red; color: white; }
|
22 |
"""
|
|
|
23 |
# ๋ชจ๋ํฐ๋ง ๋์ ๋ชฉ๋ก
|
24 |
TARGETS = [
|
25 |
{"name": "[MON]๊ด๋ฆฌ-HOME", "url": "https://seawolf2357-bnews1.hf.space"},
|
|
|
75 |
{"name": "[HUGPU]EveryText: ๋ชจ๋ ๋ฌธ์๊ฐ ์ด๋ฏธ์ง ์์ฑ์ ๋ฐ์ ", "url": "https://fantos-EveryText.hf.space"},
|
76 |
{"name": "[HUGPU]๋ด ์ผ๊ตด ์ฌ์ง์ผ๋ก ์ด๋ฏธ์ง ์์ฑ I", "url": "https://aiqtech-kofaceid.hf.space"},
|
77 |
{"name": "[HUGPU]๋ด ์ผ๊ตด ์ฌ์ง์ผ๋ก ์ด๋ฏธ์ง ์์ฑ II", "url": "https://aiqtech-sdfacid.hf.space"},
|
78 |
+
{"name": "[HUGPU]๊ณ ํด์๋ ์ด๋ฏธ์ง ์์ฑ REALVISXL V5", "url": "https://seawolf2357-REALVISXL-V5.hf.space"},
|
79 |
|
80 |
{"name": "[HUGPU]ํ
์คํธ๋ก ๊ฐ์ฒด๋ง ์๋ผ๋ด๊ณ ๋ฐฐ๊ฒฝ ํฌ๋ช
ํ", "url": "https://fantos-textcutobject.hf.space"},
|
81 |
{"name": "[HUGPU]๋น๋์ค ์ธ์ QnA ์ฑ๋ด ", "url": "https://ginipick-vidiqa.hf.space"},
|
|
|
104 |
|
105 |
]
|
106 |
|
107 |
+
def request_model_schema():
|
108 |
+
# Pydantic์ด ์ดํดํ ์ ์๋ ํ์์ ์คํค๋ง๋ฅผ ์ ์
|
109 |
+
return create_model('RequestModel')
|
110 |
+
|
111 |
+
class MyModel(BaseModel):
|
112 |
+
request: 'RequestModel'
|
113 |
+
|
114 |
+
@classmethod
|
115 |
+
def __get_pydantic_core_schema__(cls) -> 'RequestModel':
|
116 |
+
return request_model_schema()
|
117 |
|
118 |
# URL ์ํ ํ์ธ ํจ์
|
119 |
def check_url_status(url):
|
|
|
166 |
|
167 |
if __name__ == "__main__":
|
168 |
dashboard = create_dashboard()
|
169 |
+
dashboard.launch()
|