Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,10 @@ def call_langflow(message, history):
|
|
| 17 |
}
|
| 18 |
|
| 19 |
# Add API key if needed
|
| 20 |
-
if
|
| 21 |
-
headers["Authorization"] = f"Bearer {
|
| 22 |
-
if
|
| 23 |
-
headers["x-api-key"] = f"{
|
| 24 |
|
| 25 |
|
| 26 |
# Adjust this payload based on your Langflow API structure
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
# Add API key if needed
|
| 20 |
+
if HF_API_KEY:
|
| 21 |
+
headers["Authorization"] = f"Bearer {HF_API_KEY}"
|
| 22 |
+
if LANGFLOW_API_KEY:
|
| 23 |
+
headers["x-api-key"] = f"{LANGFLOW_API_KEY}"
|
| 24 |
|
| 25 |
|
| 26 |
# Adjust this payload based on your Langflow API structure
|