openfree commited on
Commit
7bcd767
โ€ข
1 Parent(s): 2464c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -13,18 +13,14 @@ from datetime import datetime
13
  import gradio as gr
14
  from typing import Tuple
15
  import time
16
- # ์ƒ๋‹จ์— Path import ์ถ”๊ฐ€
17
- from pathlib import Path
18
-
19
 
20
  # ์Šคํฌ๋ฆฐ์ƒท ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ •
21
  CACHE_DIR = Path("screenshot_cache")
22
  CACHE_DIR.mkdir(exist_ok=True)
23
 
24
-
25
  # ์ „์—ญ ๋ณ€์ˆ˜๋กœ ์Šคํฌ๋ฆฐ์ƒท ์บ์‹œ ์„ ์–ธ
26
  SCREENSHOT_CACHE = {}
27
- # get_cached_screenshot ํ•จ์ˆ˜ ์ถ”๊ฐ€
28
 
29
  def get_cached_screenshot(url: str) -> str:
30
  """์บ์‹œ๋œ ์Šคํฌ๋ฆฐ์ƒท ๊ฐ€์ ธ์˜ค๊ธฐ ๋˜๋Š” ์ƒˆ๋กœ ์ƒ์„ฑ"""
 
13
  import gradio as gr
14
  from typing import Tuple
15
  import time
16
+ from pathlib import Path # ์ถ”๊ฐ€
 
 
17
 
18
  # ์Šคํฌ๋ฆฐ์ƒท ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ •
19
  CACHE_DIR = Path("screenshot_cache")
20
  CACHE_DIR.mkdir(exist_ok=True)
21
 
 
22
  # ์ „์—ญ ๋ณ€์ˆ˜๋กœ ์Šคํฌ๋ฆฐ์ƒท ์บ์‹œ ์„ ์–ธ
23
  SCREENSHOT_CACHE = {}
 
24
 
25
  def get_cached_screenshot(url: str) -> str:
26
  """์บ์‹œ๋œ ์Šคํฌ๋ฆฐ์ƒท ๊ฐ€์ ธ์˜ค๊ธฐ ๋˜๋Š” ์ƒˆ๋กœ ์ƒ์„ฑ"""