Spaces:
Runtime error
Runtime error
Update image_generator.ipynb
Browse files- image_generator.ipynb +2 -2
image_generator.ipynb
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"import requests\n",
|
| 24 |
"\n",
|
| 25 |
"API_URL = \"https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5\"\n",
|
| 26 |
-
"headers = {\"Authorization\": \"Bearer
|
| 27 |
"\n",
|
| 28 |
"def get_image(prompt):\n",
|
| 29 |
"\tresponse = requests.post(API_URL, headers=headers, json=prompt)\n",
|
|
@@ -193,7 +193,7 @@
|
|
| 193 |
"\n",
|
| 194 |
"API_URL = \"https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5\"\n",
|
| 195 |
"headers = {\n",
|
| 196 |
-
" \"Authorization\": \"Bearer
|
| 197 |
" \"Content-Type\": \"application/json\",\n",
|
| 198 |
"}\n",
|
| 199 |
"\n",
|
|
|
|
| 23 |
"import requests\n",
|
| 24 |
"\n",
|
| 25 |
"API_URL = \"https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5\"\n",
|
| 26 |
+
"headers = {\"Authorization\": \"Bearer {your_api_key}\"}\n",
|
| 27 |
"\n",
|
| 28 |
"def get_image(prompt):\n",
|
| 29 |
"\tresponse = requests.post(API_URL, headers=headers, json=prompt)\n",
|
|
|
|
| 193 |
"\n",
|
| 194 |
"API_URL = \"https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5\"\n",
|
| 195 |
"headers = {\n",
|
| 196 |
+
" \"Authorization\": \"Bearer {your_api_key}\",\n",
|
| 197 |
" \"Content-Type\": \"application/json\",\n",
|
| 198 |
"}\n",
|
| 199 |
"\n",
|