TorchGPT provides an intuitive interface for users to generate PyTorch code using natural language. This tool helps developers prototype faster and reduces the barrier to entry for deep learning projects.
- Convert natural language prompts into PyTorch code.
- Simple and intuitive UI built with Next.js.
- Utilizes OpenAI's
text-davinci-003model for code generation.
To run this project, you need:
- Node.js
- An OpenAI API Key (Sign up at OpenAI to obtain one)
-
Clone the repository:
git clone https://github.com/yourusername/torchgpt.git cd torchgpt -
Install dependencies:
npm install # or yarn install -
Set up environment variables: Create a
.envfile in the root directory and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key
To start the development server:
npm run dev
# or
yarn devThe app will be available at http://localhost:3000.
- Open the web app.
- Enter a natural language description of the PyTorch code you need.
- Click "Generate" to receive AI-generated PyTorch code.
- Copy and use the generated code in your projects.
Contributions are welcome! Feel free to open an issue or submit a pull request.
