Spaces:
Running
Running
File size: 1,454 Bytes
00009f8 21d7fc3 8a85087 21d7fc3 00009f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
---
title: Word to Code - Visual Code Sketch Generator
emoji: 🎨
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 3.0.0
app_port: 3000
pinned: false
---
# Word to Code
[](https://huggingface.co/spaces/tinazone/word-to-code)
This is a [Next.js](https://nextjs.org) project that transforms natural language descriptions into visual code sketches.
Built by: [Tina Tarighian](https://tina.zone) Designed by: [Jocelyn Zhao](https://jocelynzhao.com/)
## 🤗 HuggingFace Space Setup
1. Clone the repository:
```bash
git clone https://huggingface.co/spaces/tinazone/word-to-code
cd word-to-code
```
2. 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
3. Make your changes and push them back:
```bash
git add .
git commit -m "Update space"
git push
```
Note: 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
1. Create a `.env.local` file in the root directory:
```bash
GEMINI_API_KEY=your_api_key_here
```
2. Install dependencies:
```bash
npm install
``` |