krrishD commited on
Commit
9c4b6c2
1 Parent(s): 155b59a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # 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 = "https://clerkie-langchain-server-bot.ishaan-jaff.repl.co/langchain_agent?user_query=" + message
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