Sobit commited on
Commit
a5a91cc
·
1 Parent(s): 3028541

Update image_generator.ipynb

Browse files
Files changed (1) hide show
  1. 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 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\"}\n",
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 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\",\n",
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",