multimodalart HF Staff commited on
Commit
3cf5f90
·
verified ·
1 Parent(s): d1e3367

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -42,6 +42,9 @@ MODEL_MAPPING_VIDEO = {
42
 
43
  SUPPORTED_CIVITAI_BASE_MODELS = list(MODEL_MAPPING_IMAGE.keys()) + list(MODEL_MAPPING_VIDEO.keys())
44
 
 
 
 
45
  headers = {
46
  "authority": "civitai.com",
47
  "accept": "*/*",
@@ -58,8 +61,6 @@ headers = {
58
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" # Example
59
  }
60
 
61
- cookie_info = os.environ.get("COOKIE_INFO")
62
-
63
  def get_json_data(url):
64
  url_split = url.split('/')
65
  if len(url_split) < 5 or not url_split[4].isdigit():
 
42
 
43
  SUPPORTED_CIVITAI_BASE_MODELS = list(MODEL_MAPPING_IMAGE.keys()) + list(MODEL_MAPPING_VIDEO.keys())
44
 
45
+
46
+ cookie_info = os.environ.get("COOKIE_INFO")
47
+
48
  headers = {
49
  "authority": "civitai.com",
50
  "accept": "*/*",
 
61
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" # Example
62
  }
63
 
 
 
64
  def get_json_data(url):
65
  url_split = url.split('/')
66
  if len(url_split) < 5 or not url_split[4].isdigit():