Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ chatter="K00B404/transcript_image_generator"
|
|
| 12 |
|
| 13 |
# Set your API endpoint and authorization details
|
| 14 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
| 15 |
-
headers = {"Authorization": "Bearer
|
| 16 |
timeout = 60 # seconds
|
| 17 |
|
| 18 |
# Load BLIP model for image captioning
|
|
|
|
| 12 |
|
| 13 |
# Set your API endpoint and authorization details
|
| 14 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
| 15 |
+
headers = {"Authorization": f"Bearer {token}"} # Replace with your actual token
|
| 16 |
timeout = 60 # seconds
|
| 17 |
|
| 18 |
# Load BLIP model for image captioning
|