mtoft20 commited on
Commit
883b00b
·
verified ·
1 Parent(s): d8e9148

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -13
README.md CHANGED
@@ -1,19 +1,106 @@
1
  ---
2
- title: Properties
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
  pinned: false
11
- short_description: Streamlit template space
 
 
 
 
 
 
 
12
  ---
13
 
14
- # Welcome to Streamlit!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
17
 
18
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
19
- forums](https://discuss.streamlit.io).
 
 
 
 
1
  ---
2
+ title: Danish Villa Assistant
3
+ emoji: 🏡
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: streamlit
7
+ sdk_version: "1.45.1"
8
+ app_file: src/app.py
 
9
  pinned: false
10
+ short_description: AI-powered Danish real estate analysis
11
+ tags:
12
+ - real-estate
13
+ - ai
14
+ - streamlit
15
+ - nocodb
16
+ - together-ai
17
+ - property-analysis
18
  ---
19
 
20
+ # 🏡 Danish Villa Assistant
21
+
22
+ 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.
23
+
24
+ ## Features
25
+
26
+ - **Property Database**: Browse Danish villa listings with detailed information
27
+ - **Smart Filtering**: Filter properties by price, rooms, city, and energy rating
28
+ - **AI Analysis**: Ask natural language questions about the property market
29
+ - **Real-time Data**: Connected to NocoDB for live property data
30
+ - **Multiple AI Models**: Choose from various Together AI models including Gemma
31
+
32
+ ## Tech Stack
33
+
34
+ - **Frontend**: Streamlit
35
+ - **Database**: NocoDB (no-code database)
36
+ - **AI/LLM**: Together AI (multiple model options)
37
+ - **Deployment**: Hugging Face Spaces
38
+
39
+ ## Setup Instructions
40
+
41
+ ### 1. Clone and Install Dependencies
42
+
43
+ ```bash
44
+ pip install -r requirements.txt
45
+ ```
46
+
47
+ ### 2. Configure API Keys
48
+
49
+ You need to set up three secrets in your Hugging Face Spaces:
50
+
51
+ 1. `TOGETHER_API_KEY` - Get from [Together AI](https://api.together.xyz/)
52
+ 2. `NOCODB_API_TOKEN` - Your NocoDB API token
53
+ 3. `NOCODB_ENDPOINT_PATH` - Your NocoDB table endpoint path (e.g., `/api/v2/tables/TABLE_ID/records`)
54
+
55
+ ### 3. Run Locally
56
+
57
+ ```bash
58
+ streamlit run src/app.py
59
+ ```
60
+
61
+ ## Deployment on Hugging Face Spaces
62
+
63
+ 1. Create a new Space on [Hugging Face Spaces](https://huggingface.co/spaces)
64
+ 2. Choose "Streamlit" as the SDK
65
+ 3. Upload all files (`src/app.py`, `requirements.txt`, `README.md`)
66
+ 4. Go to Settings → Repository secrets
67
+ 5. Add your three secret keys:
68
+ - `TOGETHER_API_KEY`
69
+ - `NOCODB_API_TOKEN`
70
+ - `NOCODB_ENDPOINT_PATH`
71
+
72
+ ## Usage
73
+
74
+ 1. **Filter Properties**: Use the sidebar to filter by price, rooms, location, and energy rating
75
+ 2. **Browse Listings**: View detailed property information in the main panel
76
+ 3. **Ask AI Questions**: Use the AI assistant to get insights about the market
77
+ 4. **Test Models**: Use the debug section to test different AI models
78
+
79
+ ## Example Questions for AI
80
+
81
+ - "What's the average price range?"
82
+ - "Tell me about energy ratings in the data"
83
+ - "Which areas have the most expensive properties?"
84
+ - "How many properties are available in each city?"
85
+ - "What's the price per square meter trend?"
86
+
87
+ ## Course Context
88
+
89
+ This app demonstrates key concepts in digital innovation:
90
+
91
+ - **No-code Database**: Using NocoDB for rapid data management
92
+ - **AI Integration**: Leveraging LLMs for natural language insights
93
+ - **Cloud Deployment**: Hosting on Hugging Face Spaces
94
+ - **Modern Web Apps**: Building with Streamlit for rapid prototyping
95
+
96
+ ## License
97
+
98
+ Built for educational purposes as part of a digital innovation course.
99
 
100
+ ## Support
101
 
102
+ For issues with:
103
+ - **Together AI**: Check [Together AI docs](https://docs.together.ai/)
104
+ - **NocoDB**: Check [NocoDB docs](https://docs.nocodb.com/)
105
+ - **Streamlit**: Check [Streamlit docs](https://docs.streamlit.io/)
106
+ - **Hugging Face Spaces**: Check [HF Spaces docs](https://huggingface.co/docs/hub/spaces)