Edisonpaul commited on
Commit
78e7d66
·
verified ·
1 Parent(s): 8f340ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ if api_key is None:
31
  headers = {"Authorization": f"Bearer {api_key}"}
32
 
33
  # Define the API URL for image generation (replace with actual model URL)
34
- API_URL = "https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4" # Updated model URL
35
 
36
  # Query Hugging Face API to generate image with error handling
37
  def query(payload):
 
31
  headers = {"Authorization": f"Bearer {api_key}"}
32
 
33
  # Define the API URL for image generation (replace with actual model URL)
34
+ API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev" # Updated model URL
35
 
36
  # Query Hugging Face API to generate image with error handling
37
  def query(payload):