DurgaDeepak commited on
Commit
dd45c6d
·
verified ·
1 Parent(s): 3a7d751

Update core/input_handler.py

Browse files
Files changed (1) hide show
  1. core/input_handler.py +6 -0
core/input_handler.py CHANGED
@@ -13,7 +13,13 @@ import ipaddress
13
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
14
  logger = logging.getLogger(__name__)
15
 
 
 
 
 
 
16
 
 
17
  def fetch_media_from_url(url):
18
  """
19
  Downloads media from a URL. Supports images and videos.
 
13
  logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
14
  logger = logging.getLogger(__name__)
15
 
16
+ # Resource Limits
17
+ MAX_IMAGE_MB = 5
18
+ MAX_IMAGE_RES = (1920, 1080)
19
+ MAX_VIDEO_MB = 50
20
+ MAX_VIDEO_DURATION = 30 # seconds
21
 
22
+ @spaces.GPU
23
  def fetch_media_from_url(url):
24
  """
25
  Downloads media from a URL. Supports images and videos.