Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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)]
|