Nymbo commited on
Commit
26e2d09
1 Parent(s): 2a40d76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -12,7 +12,7 @@ API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
12
  API_TOKEN = os.getenv("HF_READ_TOKEN")
13
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
14
  timeout = 100
15
- models_list = ["AbsoluteReality 1.8.1", "Playground 2", "Openjourney 4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit 2.5", "Realistic Vision 5.1", "Incursios 1.6", "Anime Detailer XL", "Vector Art XL", "epiCRealism", "PixelArt XL", "NewReality XL", "Anything 5.0", "Disney", "CleanLinearMix", "Redmond SDXL", "Arcane"]
16
 
17
  # OP's other AI projects: https://ai-hub.rf.gd .
18
 
@@ -76,10 +76,14 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
76
 
77
  prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
78
  print(f'\033[1mГенерация {key}:\033[0m {prompt}')
79
- #if model == 'DALL-E 3 XL':
80
- # API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
81
  if model == 'Playground 2':
82
  API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
 
 
 
 
83
  if model == 'Openjourney 4':
84
  API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney-v4"
85
  if model == 'AbsoluteReality 1.8.1':
@@ -117,7 +121,16 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
117
  API_URL = "https://api-inference.huggingface.co/models/artificialguybr/LogoRedmond-LogoLoraForSDXL-V2"
118
  if model == 'Arcane':
119
  API_URL = "https://api-inference.huggingface.co/models/nitrosocke/Arcane-Diffusion"
120
-
 
 
 
 
 
 
 
 
 
121
 
122
 
123
  payload = {
 
12
  API_TOKEN = os.getenv("HF_READ_TOKEN")
13
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
14
  timeout = 100
15
+ models_list = ["DALL-E 3 XL", "New Reality XL NSFW", "Juggernaut XL", "SDXL 1.0", "AbsoluteReality 1.8.1", "SSD-1B", "Dreamshaper XL Turbo", "Edge of Realism", "Playground 2", "NSFW Hentai", "Openjourney 4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit 2.5", "Realistic Vision 5.1", "Incursios 1.6", "Anime Detailer XL", "Vector Art XL", "epiCRealism", "PixelArt XL", "NewReality XL", "Anything 5.0", "Disney", "CleanLinearMix", "Redmond SDXL", "Arcane"]
16
 
17
  # OP's other AI projects: https://ai-hub.rf.gd .
18
 
 
76
 
77
  prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
78
  print(f'\033[1mГенерация {key}:\033[0m {prompt}')
79
+ if model == 'DALL-E 3 XL':
80
+ API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
81
  if model == 'Playground 2':
82
  API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
83
+ if model == 'Dreamshaper XL Turbo':
84
+ API_URL = "https://api-inference.huggingface.co/models/Lykon/dreamshaper-xl-turbo"
85
+ if model == 'SSD-1B':
86
+ API_URL = "https://api-inference.huggingface.co/models/segmind/SSD-1B"
87
  if model == 'Openjourney 4':
88
  API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney-v4"
89
  if model == 'AbsoluteReality 1.8.1':
 
121
  API_URL = "https://api-inference.huggingface.co/models/artificialguybr/LogoRedmond-LogoLoraForSDXL-V2"
122
  if model == 'Arcane':
123
  API_URL = "https://api-inference.huggingface.co/models/nitrosocke/Arcane-Diffusion"
124
+ if model == 'SDXL 1.0':
125
+ API_URL = "https://api-inference.huggingface.co/models/stable-diffusion-xl-base-1.0"
126
+ if model == 'Edge of Realism':
127
+ API_URL = "https://api-inference.huggingface.co/models/Yntec/edgeOfRealism"
128
+ if model == 'NSFW Hentai':
129
+ API_URL = "https://api-inference.huggingface.co/models/explicit-freedom-nsfw-wai"
130
+ if model == 'New Reality XL NSFW':
131
+ API_URL = "https://api-inference.huggingface.co/models/newrealityxl-global-nsfw"
132
+ if model == 'Juggernaut XL':
133
+ API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/juggernaut-xl-v7"
134
 
135
 
136
  payload = {