| --- |
| title: Weather Forecast |
| emoji: π€οΈ |
| colorFrom: blue |
| colorTo: green |
| sdk: docker |
| pinned: false |
| app_port: 7860 |
| --- |
| |
| # π€οΈ Weather Forecast β Powered by Open-Meteo & Mistral 7B |
|
|
| Ask anything in natural language and get a **7-day weather forecast** for every city you mention. |
|
|
| ## How it works |
|
|
| ``` |
| User prompt β Mistral-7B (HF Inference API) β list of cities |
| β |
| Open-Meteo Geocoding API β lat/lon for each city |
| β |
| Open-Meteo Forecast API β 7-day daily forecast |
| β |
| Streamlit UI |
| ``` |
|
|
| ## Stack |
|
|
| | Layer | Technology | |
| |-------|-----------| |
| | UI | Streamlit | |
| | Containerisation | Docker | |
| | LLM (NLP parsing) | Mistral-7B-Instruct-v0.3 via HF Inference API | |
| | Geocoding | Open-Meteo Geocoding API (free, no key) | |
| | Weather data | Open-Meteo Forecast API (free, no key) | |
|
|
| ## Setup |
|
|
| files : |
|
|
| weather-app/ |
| βββ src |
| βββsrc |
| βββstreamlit_app.py |
| βββ Dockerfile |
| βββ requirements.txt |
| βββ README.md |
| ``` |
| |
| Open https://annanurov-rainytrek.hf.space/ |
|
|
| ## Example prompts |
|
|
| - *"What's the weather like in Paris and Tokyo?"* |
| - *"I'm travelling from Berlin to Rome next week, what should I pack?"* |
| - *"Compare weather in London, New York and Sydney"* |
|
|
| ## Notes |
|
|
| - Open-Meteo is fully **open-source and free** β no API key required. |
| - The LLM call uses the **Hugging Face serverless Inference API** (`mistralai/Mistral-7B-Instruct-v0.3`). A free HF account token is sufficient for moderate usage. |
| - Temperatures are in **Β°C**, wind speed in **km/h**, precipitation in **mm**. |
|
|