--- title: ExoPrompt Greenhouse Climate Demo emoji: ๐ŸŒฑ colorFrom: green colorTo: blue sdk: docker app_port: 8501 tags: - streamlit - time-series-forecasting - greenhouse - exoprompt pinned: false license: mit short_description: ExoPrompt paper demo โ€” greenhouse climate forecasting --- # ExoPrompt โ€” Greenhouse Climate Forecasting Demo ๐Ÿ“„ [**Paper**](https://doi.org/10.1016/j.compag.2026.111673)  ยท  ๐Ÿ’ป [**Original paper repo**](https://github.com/gsoykan/ExoPrompt)  ยท  ๐Ÿ› ๏ธ [**Demo source**](https://github.com/gsoykan/exoprompt-inference)  ยท  ๐Ÿค— [**Checkpoints**](https://huggingface.co/gsoykan/exoprompt-checkpoints)  ยท  ๐Ÿš€ [**Live demo**](https://huggingface.co/spaces/gsoykan/exoprompt-inference) Interactive Streamlit demo for [ExoPrompt](https://doi.org/10.1016/j.compag.2026.111673): transformer-based greenhouse climate forecasting with structured exogenous prompts and physics-based simulation. Two models are exposed: - **ExoPrompt Transformer** โ€” Transformer backbone conditioned on 254 structural, environmental, and crop parameters via learnable soft prompts. - **Vanilla Transformer** โ€” same Transformer backbone, no exogenous conditioning (baseline for comparison). Both models are loaded from the published paper checkpoints (200k-sample HPS pretraining). ## Local development ```bash # install deps uv sync # run streamlit locally uv run streamlit run app.py ``` ## Checkpoints Checkpoints are hosted in a sibling Hugging Face model repo and downloaded on first launch via `huggingface_hub.hf_hub_download` (cached on the Space's persistent disk). ## Project structure ``` exoprompt-inference/ โ”œโ”€โ”€ app.py โ† Streamlit entry (loaded by HF Spaces) โ”œโ”€โ”€ pyproject.toml โ””โ”€โ”€ src/exoprompt_inference/ โ”œโ”€โ”€ data/ โ† inference dataset + loaders โ”œโ”€โ”€ inference/ โ† model loader + Predictor โ”œโ”€โ”€ streamlit/ โ† Streamlit app + UI components โ””โ”€โ”€ _vendor/ โ† carved-out training code โ”œโ”€โ”€ models/ โ† lit module, abstract base, physi-net wrapper โ”œโ”€โ”€ utils/ โ† scaler, time features, pickle helper โ””โ”€โ”€ time_series_library/ โ† Transformer backbone (only) ``` ## Citation ```bibtex @article{SOYKAN2026111673, title = {ExoPrompt: Transformer-based greenhouse climate forecasting with structured conditioning and physics-based simulation}, journal = {Computers and Electronics in Agriculture}, volume = {246}, pages = {111673}, year = {2026}, author = {Soykan, G{\"u}rkan and Babur, {\"O}nder and Liu, Qingzhi and Tekinerdogan, Bedir} } ```