wifix199 commited on
Commit
5ed1676
1 Parent(s): 7f5f8e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
 
5
  # Define the function to query Hugging Face API for image generation
6
  def generate_image(prompt):
7
- API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
8
  API_TOKEN = os.getenv("HF_READ_TOKEN") # Ensure the token is set in your environment
9
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
10
 
 
4
 
5
  # Define the function to query Hugging Face API for image generation
6
  def generate_image(prompt):
7
+ API_URL = "https://api-inference.huggingface.co/models/KingNish/flux-me"
8
  API_TOKEN = os.getenv("HF_READ_TOKEN") # Ensure the token is set in your environment
9
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
10