Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/santoshshinde2012/streamlit-crop-disease-risk-prediction

This application predicts the risk of crop disease based on the entered crop details.
https://github.com/santoshshinde2012/streamlit-crop-disease-risk-prediction

data-science machine-learning plotly plotlyjs python reactjs streamlit

Last synced: 3 months ago
JSON representation

This application predicts the risk of crop disease based on the entered crop details.

Awesome Lists containing this project

README

        



Github action workflow status

# 📦 [Streamlit Crop Disease Risk Prediction App](https://crop-disease-risk-prediction.streamlit.app/)

Streamlit is a powerful tool for creating interactive web applications using Python. However, there are times when the built-in components may not meet your specific needs. In such cases, you can create custom components using modern front-end technologies like Vite, React, and TypeScript. This guide will walk you through the process of setting up a custom component for your Streamlit app, enabling a seamless integration of sophisticated front-end features with the simplicity of Python.

## How to run locally

1. Make sure to install required python packages

```
pip install -r requirements.txt
```

2. Make sure to install all required npm packages in frontend project

```
cd streamlit-app/rbutton/frontend

npm install
```

3. If you want to run application dev mode update `.env` file

```
DEV_MODE=true

// this path is for your running frontend application
FRONTEND_HOST=http://localhost:5173
```

4. If you want to run production build

```
cd streamlit-app/rbutton/frontend

npm run build
```

## Demo App

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://crop-disease-risk-prediction.streamlit.app/)



demp

## Project Structure

````
streamlit-app/
├── streamlit_app.py
├── .env
├── requirements.txt
├── components/
│ ├── __init__.py
│ ├── chart/
│ │ ├── dist/
│ │ │ ├── index.html
│ │ │ ├── assets
│ │ │ │ ├── index.js
│ │ │ │ └── index.css
│ │ ├── src/
│ │ │ ├── App.tsx
│ │ │ ├── assets
│ │ │ │ └── ...
│ │ │ ├── components
│ │ │ │ └── ...
│ │ │ └── ...
│ │ ├── package.json
│ │ └── vite.config.ts
````

## Further Reading

- [30 Days of Streamlit](https://30days.streamlit.app/)
- [How to build your own Streamlit component](https://blog.streamlit.io/how-to-build-your-own-streamlit-component/)
- [Understanding Streamlit's client-server architecture](https://docs.streamlit.io/develop/concepts/architecture/architecture)
- [Wiki](https://github.com/streamlit/streamlit/wiki)

## Tutorials
- [Getting Started with Streamlit and Custom Streamlit Components](https://medium.com/@santosh-shinde/getting-started-with-streamlit-and-custom-streamlit-components-491bd197cd9f)

### Connect with me on



Twitter Badge


LinkedIn Badge


Medium Badge


Buy Me A Coffee