asmaab commited on
Commit
e1c84f3
·
verified ·
1 Parent(s): 33040a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- headers = {
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 = {