From f421121cf3dad69097f927e487cad8962c0261a8 Mon Sep 17 00:00:00 2001 From: Jeff MAURY Date: Wed, 25 Sep 2024 14:57:14 +0200 Subject: [PATCH] fix: typo and unused imports Signed-off-by: Jeff MAURY --- .../function_calling/app/app.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes/natural_language_processing/function_calling/app/app.py b/recipes/natural_language_processing/function_calling/app/app.py index 2f492692..17eda1c1 100644 --- a/recipes/natural_language_processing/function_calling/app/app.py +++ b/recipes/natural_language_processing/function_calling/app/app.py @@ -1,17 +1,13 @@ from langchain_openai import ChatOpenAI -from langchain.chains import LLMChain -from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder +from langchain_core.prompts import ChatPromptTemplate from langchain_core.pydantic_v1 import BaseModel, Field from langchain_core.output_parsers import PydanticToolsParser -from langchain.globals import set_debug, set_verbose import streamlit as st import requests import time import json import os -from urllib3 import request - model_service = os.getenv("MODEL_ENDPOINT", "http://localhost:8001") model_service = f"{model_service}/v1" @@ -97,7 +93,7 @@ def retrieve(self): st.markdown(""" This demo application will ask the LLM for the weather in the city given in the input field and -specify a tool that can get weather information give a latitude and longitude. The weather information +specify a tool that can get weather information given a latitude and longitude. The weather information retrieval is implemented using open-meteo.com. """) container = st.empty()