Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ clerkieExamples=["how do I use langchain?", "How do I create an agent with custo
|
|
15 |
def chat(message, history):
|
16 |
print(message)
|
17 |
history = history or []
|
18 |
-
|
19 |
-
endpoint = "https://clerkie-langchain-server-bot.ishaan-jaff.repl.co/langchain_agent?user_query="
|
20 |
-
user_query =
|
21 |
print("user_query: ", user_query)
|
22 |
response = requests.get(user_query).json()["response"]["output"]
|
23 |
# split on code
|
|
|
15 |
def chat(message, history):
|
16 |
print(message)
|
17 |
history = history or []
|
18 |
+
endpoint = os.environ.get("langchain_bot_api_endpoint")
|
19 |
+
# endpoint = "https://clerkie-langchain-server-bot.ishaan-jaff.repl.co/langchain_agent?user_query="
|
20 |
+
user_query = endpoint + message
|
21 |
print("user_query: ", user_query)
|
22 |
response = requests.get(user_query).json()["response"]["output"]
|
23 |
# split on code
|