Spaces:
Paused
Paused
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
|
| 19 |
-
forums](https://discuss.streamlit.io).
|
|
|
|
| 1 |
+
# π Car Info Finder & Version Comparator
|
| 2 |
+
|
| 3 |
+
This Streamlit-based project allows users to search for car information using the Wikipedia API and compare different versions or models of cars if disambiguation is detected. It includes two modules: a main search and comparison interface (`SearchPage.py`) and a dedicated comparison view (`campare.py`).
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
## π¦ Features
|
| 7 |
+
### π Car Info Finder (`SearchPage.py`)
|
| 8 |
+
- Search cars by name using the Wikipedia API.
|
| 9 |
+
- Automatically filters out non-automobile-related results.
|
| 10 |
+
- Supports **three categories**: Vintage, Classic, and Trending.
|
| 11 |
+
- Maintains a **search history** for quick access.
|
| 12 |
+
- Includes a **Compare Mode** for viewing multiple car models side-by-side.
|
| 13 |
+
- Handles Wikipedia disambiguation by sorting versions using extracted years.
|
| 14 |
+
- Displays car summaries, images, and links to full Wikipedia articles.
|
| 15 |
+
|
| 16 |
+
### π Version Comparator (`campare.py`)
|
| 17 |
+
- Displays multiple car models if the selected name has a disambiguation page.
|
| 18 |
+
- Allows users to select and compare specific versions in parallel.
|
| 19 |
+
- Uses session state to persist disambiguation options across navigation.
|
| 20 |
+
- Shows detailed Wikipedia summaries with images and links.
|
| 21 |
+
|
| 22 |
---
|
| 23 |
+
|
| 24 |
+
## π How to Run
|
| 25 |
+
|
| 26 |
+
1. **Clone this repository** or copy both files to your local directory.
|
| 27 |
+
2. Make sure you have Python and the required libraries:
|
| 28 |
+
```bash
|
| 29 |
+
pip install streamlit wikipedia
|
| 30 |
+
|
| 31 |
+
----
|
| 32 |
+
|
| 33 |
+
## # Link
|
| 34 |
+
Link: https://huggingface.co/spaces/tsairohith/car_info_finder
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
-----
|
| 38 |
+
|
| 39 |
+
## π§ How It Works
|
| 40 |
+
|
| 41 |
+
1. Uses the wikipedia Python package to fetch summaries and images.
|
| 42 |
+
|
| 43 |
+
2. Filters non-car-related content using automotive keywords.
|
| 44 |
+
|
| 45 |
+
3. Handles ambiguous results (e.g., "Ford Mustang" with many models) via a secondary comparison tool.
|
| 46 |
+
|
| 47 |
+
4. Session state ensures seamless switching between search and compare modes.
|
| 48 |
+
---
|
| 49 |
+
## π οΈ To-Do (Optional Enhancements)
|
| 50 |
+
|
| 51 |
+
1. Add sentiment analysis or specs comparison.
|
| 52 |
+
|
| 53 |
+
2. Cache Wikipedia API responses for performance.
|
| 54 |
+
|
| 55 |
+
3. Expand to other vehicle types (bikes, trucks, etc.).
|
| 56 |
+
|
| 57 |
+
4. Include user ratings or historical sales data.
|
| 58 |
---
|
| 59 |
+
## π§βπ» Author
|
| 60 |
+
|
| 61 |
+
Built with β€οΈ using Streamlit and Wikipedia by [Team 43].
|
| 62 |
|
| 63 |
+
**Team Members**
|
| 64 |
|
| 65 |
+
1. Rajesh Parikapalli
|
| 66 |
+
2. T.Sai Rohith
|
| 67 |
+
3. K.Sharath Chandra
|
| 68 |
+
4. Nihal Shariff
|
| 69 |
|
|
|
|
|
|