This is a web application developed to track calorie consumption using ChatGPT.
The goal of this application is to provide users with an interface to interact and track their calorie intake. Users can input their calorie information either by voice or text. The application utilizes the Whisper API from OpenAI to transcribe the text and the Chat API to calculate the calorie content. The data is then stored in a local database.
The application consists of the following components:
- User interface: The user interface is built using HTML and JavaScript.
- Transcribe service: Utilizes the Whisper API for text transcription.
- API interface: Handles communication between the client and server.
- Database interface: Handles database operations using SQLLite.
To use the application, follow these steps:
- Start the Python simple HTTP server to serve the web traffic, you will need to export your API key to env, export OPENAI_API_KEY="your_key"
- Access the web application through the URL http://localhost:8000/.
- Use the user interface to record calorie information using voice or text.
- The application will transcribe the text, calculate the calorie content, and save the data to the local database.
- The data can be accessed and viewed through the dashboard, http://localhost:8000/dashboard.
- Clone the repository to your local machine.
- Install the required dependencies listed in the
requirements.txt
file. - Start the Python server to serve the web traffic.
- Access the web application through the provided URL.
Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.
For any inquiries or further information, please contact [your-name] at [your-email-address].