Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ list_models = [
|
|
| 10 |
"SDXL 1.0", "SD 1.5", "OpenJourney", "Anything V4.0",
|
| 11 |
"Disney Pixar Cartoon", "Pixel Art XL", "Dalle 3 XL",
|
| 12 |
"Midjourney V4 XL", "Open Diffusion V1", "SSD 1B",
|
| 13 |
-
"Segmind Vega", "Animagine XL-2.0",
|
| 14 |
]
|
| 15 |
|
| 16 |
# Function to generate images from text
|
|
@@ -39,7 +39,9 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
|
|
| 39 |
elif current_model == "Segmind Vega":
|
| 40 |
API_URL = "https://api-inference.huggingface.co/models/segmind/Segmind-Vega"
|
| 41 |
elif current_model == "Animagine XL-2.0":
|
| 42 |
-
API_URL = "https://api-inference.huggingface.co/models/Linaqruf/animagine-xl-2.0"
|
|
|
|
|
|
|
| 43 |
|
| 44 |
API_TOKEN = os.environ.get("HF_READ_TOKEN")
|
| 45 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
|
|
| 10 |
"SDXL 1.0", "SD 1.5", "OpenJourney", "Anything V4.0",
|
| 11 |
"Disney Pixar Cartoon", "Pixel Art XL", "Dalle 3 XL",
|
| 12 |
"Midjourney V4 XL", "Open Diffusion V1", "SSD 1B",
|
| 13 |
+
"Segmind Vega", "Animagine XL-2.0", "FunkoPOP",
|
| 14 |
]
|
| 15 |
|
| 16 |
# Function to generate images from text
|
|
|
|
| 39 |
elif current_model == "Segmind Vega":
|
| 40 |
API_URL = "https://api-inference.huggingface.co/models/segmind/Segmind-Vega"
|
| 41 |
elif current_model == "Animagine XL-2.0":
|
| 42 |
+
API_URL = "https://api-inference.huggingface.co/models/Linaqruf/animagine-xl-2.0"
|
| 43 |
+
elif current_model == "FunkoPOP":
|
| 44 |
+
API_URL = "https://api-inference.huggingface.co/models/ProomptEngineer/pe-funko-pop-diffusion-style"
|
| 45 |
|
| 46 |
API_TOKEN = os.environ.get("HF_READ_TOKEN")
|
| 47 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|