Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ class StoryEnd(Event):
|
|
37 |
|
38 |
# Helper function to generate an image and return its path
|
39 |
async def generate_image(prompt: str, hf_token: str) -> str | None:
|
40 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
41 |
headers = {"Authorization": f"Bearer {hf_token}"}
|
42 |
full_prompt = f"epic fantasy art, digital painting, cinematic lighting, masterpiece, {prompt}"
|
43 |
payload = {"inputs": full_prompt}
|
|
|
37 |
|
38 |
# Helper function to generate an image and return its path
|
39 |
async def generate_image(prompt: str, hf_token: str) -> str | None:
|
40 |
+
API_URL = "https://api-inference.huggingface.co/models/stabilityai/sdxl-turbo"
|
41 |
headers = {"Authorization": f"Bearer {hf_token}"}
|
42 |
full_prompt = f"epic fantasy art, digital painting, cinematic lighting, masterpiece, {prompt}"
|
43 |
payload = {"inputs": full_prompt}
|