tinazone/word-to-code
6
Word to Code

This is a Next.js project that transforms natural language descriptions into visual code sketches.
Built by: Tina Tarighian Designed by: Jocelyn Zhao
๐ค HuggingFace Space Setup
- Clone the repository:
git clone https://huggingface.co/spaces/tinazone/word-to-code
cd word-to-code- Set up your environment variables:
- Go to your HuggingFace Space's Settings tab
- Under "Repository Secrets", add a new secret:
- Name:
GEMINI_API_KEY - Value: Your Gemini API key from https://ai.google.dev/
- The secret will be securely passed to the container at runtime
- Make your changes and push them back:
git add .
git commit -m "Update space"
git pushNote: When pushing, use a HuggingFace access token with write permissions as your password. Generate one from: https://huggingface.co/settings/tokens
๐จ Space Configuration
Local Development
- Create a
.env.localfile in the root directory:
GEMINI_API_KEY=your_api_key_here- Install dependencies:
npm install