Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,9 +116,7 @@ def generate_image_from_prompt(prompt: str, negative_prompt: str = "", height: i
|
|
| 116 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
| 117 |
# You need to set your Hugging Face API token
|
| 118 |
# Get one from: https://huggingface.co/settings/tokens
|
| 119 |
-
|
| 120 |
-
"Authorization": f"Bearer {os.environ.get('HF_API_TOKEN', 'YOUR_HF_TOKEN')}"
|
| 121 |
-
}
|
| 122 |
|
| 123 |
# Prepare the payload
|
| 124 |
payload = {
|
|
|
|
| 116 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
| 117 |
# You need to set your Hugging Face API token
|
| 118 |
# Get one from: https://huggingface.co/settings/tokens
|
| 119 |
+
|
|
|
|
|
|
|
| 120 |
|
| 121 |
# Prepare the payload
|
| 122 |
payload = {
|