Welcome to Phone Buddy! This application helps you find the best smartphone based on your preferences. You can select various specifications such as RAM, Storage, Camera, Processor, Display Size, Price Range, and provide additional details in a text area to get the best phone suggestions.
- Select RAM options: Choose from 2 GB to 16 GB.
- Select Storage options: Choose from 16 GB to 1 TB.
- Select Camera options: Choose from 8 MP to 108 MP.
- Select Processor options: Choose from Quad-Core to A14 Bionic.
- Select Display Size options: Choose from 5.0" to 6.9".
- Select Price Range: Adjust the slider to set your preferred price range.
- Write Prompt: Optionally, provide additional details or preferences in a text area.
- Get Recommendations: The app filters and displays smartphones that match your criteria.
- You can check out our app from streamlit here
To run this application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/akashkunwar/phone-buddy.git cd phone-buddy
-
Install the required dependencies:
pip install streamlit uagents groq nest_asyncio
-
Set your Groq API key:
export groq_api_key='YOUR_GROQ_API_KEY'
-
Run the application:
streamlit run main.py
- Start the application: Follow the installation steps to run the application locally.
- Select your preferences: Use the provided options to select your desired phone specifications.
- View recommendations: The app will display a list of smartphones that match your selected criteria.
The main entry point of the application which handles the user interface and interactions.
Contains utility functions such as generate_prompt
to create the query prompt for phone specifications.
Handles the interaction with the Groq API, encapsulating the logic for making requests and processing responses.
Contributions are welcome! Please fork this repository and submit a pull request for any improvements or additions.
This project is licensed under the MIT License - see the LICENSE file for details.