ChienChung commited on
Commit
41fb49f
·
verified ·
1 Parent(s): b10b169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -967,7 +967,7 @@ def multi_agent_chat_advanced(query: str, file=None) -> str:
967
  date_keywords = ["what date", "today", "what time", "what day", "current time", "date", "現在幾點", "今天幾號", "禮拜幾"]
968
  if any(k in lower_query for k in date_keywords):
969
  return get_time_tool(query)
970
- weather_keywords = ["weather", "rain", "snow", "cold", "hot", "sunscreen", "umbrella", "windy", "cloudy", "sunny", "temperature", "forecast", "天氣", "會不會下雨", "冷嗎", "熱嗎", "氣溫"]
971
  if any(k in lower_query for k in weather_keywords):
972
  return weather_agent_tool(query)
973
  search_keywords = ["latest", "news", "startup", "startups", "company", "companies", "top", "trending", "in 2025", "in 2024", "tell me"]
@@ -1133,7 +1133,7 @@ This demo presents a GPT-style Multi-Agent AI Assistant, built with **LangChain,
1133
  2. What are the key ideas mentioned in this file? *(→ RAG QA Agent)*
1134
  3. What is LangChain used for? | What are the latest trends in AI startups in 2025? | Tell me the most recent breakthrough in quantum computing. *(→ Online Rag Agent)*
1135
  4. What's the current time in London? | What’s today’s date in New York? | What time is it in Taipei right now? *(→ Time Agent)*
1136
- 5. Will it rain in New York in 2 hours? | Is it going to be hot tomorrow in Nottingham? | What was the weather like in Paris two days ago? | Is it gonna rain later? *(→ Weather Agent)*
1137
  6. If I earn $15 per hour and work 8 hours a day for 5 days, how much will I earn? | What is 5 * 22.5 / sin(45) | 3^3 + 4^2 | Calculate 25 * log(1000) | What is the square root of 144 *(→ Math Agent)*
1138
  7. Who are you? | What can you do? | What is the meaning of life? *(→ General Chat Agent)*
1139
 
 
967
  date_keywords = ["what date", "today", "what time", "what day", "current time", "date", "現在幾點", "今天幾號", "禮拜幾"]
968
  if any(k in lower_query for k in date_keywords):
969
  return get_time_tool(query)
970
+ weather_keywords = ["weather", "rain", "snow", "cold", "hot", "sunscreen", "sunglasses", "umbrella", "windy", "cloudy", "sunny", "temperature", "forecast", "天氣", "會不會下雨", "冷嗎", "熱嗎", "氣溫"]
971
  if any(k in lower_query for k in weather_keywords):
972
  return weather_agent_tool(query)
973
  search_keywords = ["latest", "news", "startup", "startups", "company", "companies", "top", "trending", "in 2025", "in 2024", "tell me"]
 
1133
  2. What are the key ideas mentioned in this file? *(→ RAG QA Agent)*
1134
  3. What is LangChain used for? | What are the latest trends in AI startups in 2025? | Tell me the most recent breakthrough in quantum computing. *(→ Online Rag Agent)*
1135
  4. What's the current time in London? | What’s today’s date in New York? | What time is it in Taipei right now? *(→ Time Agent)*
1136
+ 5. Will it rain or snow in Sapporo tomorrow night? | Is it too windy for cycling in Amsterdam at 6am? | Do I need to bring an umbrella later this evening in Edinburgh? | Should I wear sunscreen in Bangkok around noon tomorrow? *(→ Weather Agent)*
1137
  6. If I earn $15 per hour and work 8 hours a day for 5 days, how much will I earn? | What is 5 * 22.5 / sin(45) | 3^3 + 4^2 | Calculate 25 * log(1000) | What is the square root of 144 *(→ Math Agent)*
1138
  7. Who are you? | What can you do? | What is the meaning of life? *(→ General Chat Agent)*
1139