ArceusInception commited on
Commit
719b40e
·
verified ·
1 Parent(s): dd1bdc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def get_weather_and_insight(city):
20
 
21
  # Generate a creative weather summary using LangChain LLM
22
  groq_api_key = os.getenv("GROQ_API_KEY")
23
- system = f"You are a weather expert reporter of {city}. You must compile a short weather summary based on information like {temp} degree celsius is the current temperature of the city, {humidity} percent is the humidity percentage for the city. The weather of the city can be best described as {description}."
24
  human = "{text}"
25
  prompt = ChatPromptTemplate.from_messages(
26
  [("system", system), ("human", human)]
 
20
 
21
  # Generate a creative weather summary using LangChain LLM
22
  groq_api_key = os.getenv("GROQ_API_KEY")
23
+ system = f"You are a local weather reporter bringing the latest update for {city}. Right now, it's {temp} degrees Celsius with about {humidity} percent humidity. The weather of the city can be best described as {description} with a short fun fact."
24
  human = "{text}"
25
  prompt = ChatPromptTemplate.from_messages(
26
  [("system", system), ("human", human)]