Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,13 +12,15 @@ from io import BytesIO
|
|
12 |
from datetime import datetime
|
13 |
import gradio as gr
|
14 |
from typing import Tuple
|
15 |
-
|
16 |
|
17 |
# ์คํฌ๋ฆฐ์ท ์บ์ ๋๋ ํ ๋ฆฌ ์ค์
|
18 |
CACHE_DIR = Path("screenshot_cache")
|
19 |
CACHE_DIR.mkdir(exist_ok=True)
|
20 |
|
21 |
-
|
|
|
|
|
22 |
|
23 |
def take_screenshot(url):
|
24 |
"""์น์ฌ์ดํธ ์คํฌ๋ฆฐ์ท ์ดฌ์ ํจ์ (๋ก๋ฉ ๋๊ธฐ ์๊ฐ ์ถ๊ฐ)"""
|
|
|
12 |
from datetime import datetime
|
13 |
import gradio as gr
|
14 |
from typing import Tuple
|
15 |
+
import time
|
16 |
|
17 |
# ์คํฌ๋ฆฐ์ท ์บ์ ๋๋ ํ ๋ฆฌ ์ค์
|
18 |
CACHE_DIR = Path("screenshot_cache")
|
19 |
CACHE_DIR.mkdir(exist_ok=True)
|
20 |
|
21 |
+
|
22 |
+
# ์ ์ญ ๋ณ์๋ก ์คํฌ๋ฆฐ์ท ์บ์ ์ ์ธ
|
23 |
+
SCREENSHOT_CACHE = {}
|
24 |
|
25 |
def take_screenshot(url):
|
26 |
"""์น์ฌ์ดํธ ์คํฌ๋ฆฐ์ท ์ดฌ์ ํจ์ (๋ก๋ฉ ๋๊ธฐ ์๊ฐ ์ถ๊ฐ)"""
|