Spaces:
Running
Running
Update app.py
Browse files
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/
|
| 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 |
|