A newer version of the Streamlit SDK is available:
1.52.2
metadata
title: Danish Villa Assistant
emoji: π‘
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.45.1
app_file: src/app.py
pinned: false
short_description: AI-powered Danish real estate analysis
tags:
- real-estate
- ai
- streamlit
- nocodb
- together-ai
- property-analysis
π‘ Danish Villa Assistant
An AI-powered real estate analysis app that helps explore Danish villa properties with intelligent insights. Built with Streamlit, NocoDB, and Together AI for a digital innovation course.
Features
- Property Database: Browse Danish villa listings with detailed information
- Smart Filtering: Filter properties by price, rooms, city, and energy rating
- AI Analysis: Ask natural language questions about the property market
- Real-time Data: Connected to NocoDB for live property data
- Multiple AI Models: Choose from various Together AI models including Gemma
Tech Stack
- Frontend: Streamlit
- Database: NocoDB (no-code database)
- AI/LLM: Together AI (multiple model options)
- Deployment: Hugging Face Spaces
Setup Instructions
1. Clone and Install Dependencies
pip install -r requirements.txt
2. Configure API Keys
You need to set up three secrets in your Hugging Face Spaces:
TOGETHER_API_KEY- Get from Together AINOCODB_API_TOKEN- Your NocoDB API tokenNOCODB_ENDPOINT_PATH- Your NocoDB table endpoint path (e.g.,/api/v2/tables/TABLE_ID/records)
3. Run Locally
streamlit run src/app.py
Deployment on Hugging Face Spaces
- Create a new Space on Hugging Face Spaces
- Choose "Streamlit" as the SDK
- Upload all files (
src/app.py,requirements.txt,README.md) - Go to Settings β Repository secrets
- Add your three secret keys:
TOGETHER_API_KEYNOCODB_API_TOKENNOCODB_ENDPOINT_PATH
Usage
- Filter Properties: Use the sidebar to filter by price, rooms, location, and energy rating
- Browse Listings: View detailed property information in the main panel
- Ask AI Questions: Use the AI assistant to get insights about the market
- Test Models: Use the debug section to test different AI models
Example Questions for AI
- "What's the average price range?"
- "Tell me about energy ratings in the data"
- "Which areas have the most expensive properties?"
- "How many properties are available in each city?"
- "What's the price per square meter trend?"
Course Context
This app demonstrates key concepts in digital innovation:
- No-code Database: Using NocoDB for rapid data management
- AI Integration: Leveraging LLMs for natural language insights
- Cloud Deployment: Hosting on Hugging Face Spaces
- Modern Web Apps: Building with Streamlit for rapid prototyping
License
Built for educational purposes as part of a digital innovation course.
Support
For issues with:
- Together AI: Check Together AI docs
- NocoDB: Check NocoDB docs
- Streamlit: Check Streamlit docs
- Hugging Face Spaces: Check HF Spaces docs