Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,13 +13,13 @@ import io
|
|
| 13 |
import time
|
| 14 |
|
| 15 |
# Set up Groq API key
|
| 16 |
-
api_key = os.getenv("
|
| 17 |
client = Groq(api_key=api_key)
|
| 18 |
|
| 19 |
# Hugging Face API details for image generation
|
| 20 |
-
|
| 21 |
API_URL = "https://api-inference.huggingface.co/models/Artples/LAI-ImageGeneration-vSDXL-2"
|
| 22 |
-
headers = {"Authorization": f"Bearer {
|
| 23 |
|
| 24 |
|
| 25 |
# Function for querying image generation with retries
|
|
|
|
| 13 |
import time
|
| 14 |
|
| 15 |
# Set up Groq API key
|
| 16 |
+
api_key = os.getenv("grog_key")
|
| 17 |
client = Groq(api_key=api_key)
|
| 18 |
|
| 19 |
# Hugging Face API details for image generation
|
| 20 |
+
key = os.getenv("hf_key")
|
| 21 |
API_URL = "https://api-inference.huggingface.co/models/Artples/LAI-ImageGeneration-vSDXL-2"
|
| 22 |
+
headers = {"Authorization": f"Bearer {key}"}
|
| 23 |
|
| 24 |
|
| 25 |
# Function for querying image generation with retries
|