Spaces:
Running
Running
metadata
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
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/
- Name:
- 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 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
- Create a
.env.local
file in the root directory:
GEMINI_API_KEY=your_api_key_here
- Install dependencies:
npm install