seawolf2357 commited on
Commit
b7f3af4
ยท
verified ยท
1 Parent(s): 2c783de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
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
- # {"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,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()