Spaces:
Runtime error
Runtime error
Download Home.py from PatternGroup5/pattern: direct link, hf CLI and curl.
- Browser
- Download file 857 Bytes
-
https://huggingface.co/spaces/PatternGroup5/pattern/resolve/refs%2Fpr%2F5/Home.py
- Command line
-
hf download hf://spaces/PatternGroup5/pattern@refs/pr/5/Home.py
-
curl -L -o Home.py https://huggingface.co/spaces/PatternGroup5/pattern/resolve/refs%2Fpr%2F5/Home.py
857 Bytes
| import streamlit as st | |
| from utils.layout import set_custom_page_config, render_header | |
| with open("assets/css/styles.css") as f: | |
| st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True) | |
| set_custom_page_config() | |
| render_header() | |
| st.markdown(""" | |
| <div class="about-box"> | |
| This tool leverages AI to assist in:<br> | |
| - Classifying images of vegetables and fruits.<br> | |
| - Detecting their variations (cut, whole, sliced).<br> | |
| - Recommending recipes based on natural language input.<br> | |
| </div> | |
| ### Use the left sidebar to navigate between: | |
| - Task A: Classification - upload an image of a vegetable or fruit to classify it. | |
| - Task B: Variation Detection - upload an image of a vegetable or fruit to detect its variation. | |
| - NLP Recipe Recommendation - enter a search query to recommend a recipe. | |
| """, unsafe_allow_html=True) | |