rossiter78 commited on
Commit
8bdfec4
·
verified ·
1 Parent(s): a25d98b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -17,10 +17,10 @@ def call_langflow(message, history):
17
  }
18
 
19
  # Add API key if needed
20
- if LANGFLOW_API_KEY:
21
- headers["Authorization"] = f"Bearer {LANGFLOW_API_KEY}"
22
- if HF_API_KEY:
23
- headers["x-api-key"] = f"{HF_API_KEY}"
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