A web application for communicating with OpenAI's API using voice messages. This project demonstrates a simple Python web app with voice message support, suitable for deployment on Google Cloud Run.
- Communicate with OpenAI API
- Voice message support
- Simple web interface
- Python 3.8+
- OpenAI API key
- Google Cloud SDK (for deployment)
- Clone this repository:
git clone https://github.com/yourusername/ai_mate.git cd ai_mate - Install dependencies:
pip install -r requirements.txt
- Set your OpenAI API key as an environment variable:
$env:OPENAI_API_KEY="your-api-key" # PowerShell # or export OPENAI_API_KEY="your-api-key" # Bash
- Run the application locally:
python main.py
- Open your browser and go to
http://localhost:5000.
To deploy on Google Cloud Run:
- Make sure you are authenticated with Google Cloud and have set your project:
gcloud auth login gcloud config set project YOUR_PROJECT_ID - Deploy using the following command (replace parameters as needed):
gcloud run deploy ai-mate --allow-unauthenticated --region=asia-northeast1 --project=YOUR_PROJECT_ID --source .
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.