metadata
app_file: app.py
colorFrom: blue
colorTo: green
emoji: ✍️
license: mit
pinned: false
sdk: gradio
sdk_version: 5.39.0
short_description: A sentence level writing assistant
title: Writing Aid
Writing Aid
A sentence level writing assistant
Quick Deploy to HuggingFace Spaces
Step 1: Create the Space
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Choose a name for your Space
- Select Gradio as the SDK
- Set visibility (Public/Private)
- Click "Create Space"
Step 2: Upload Files
- In your new Space, click "Files" tab
- Upload these files from the zip:
app.py
requirements.txt
config.json
README.md
- Wait for "Building" to complete
Step 3: Add Access Code (Required)
- In Settings, click "Variables and secrets"
- Click "New secret"
- Name:
ACCESS_CODE
- Value: Your chosen access code/password
- Click "Add"
- Important: Share this code with your students!
Step 4: Add OpenRouter API Key
- Get your API key from https://openrouter.ai/keys
- In your Space Settings, click "Variables and secrets"
- Click "New secret"
- Name:
API_KEY
- Value: Your OpenRouter API key (starts with
sk-or-
) - Click "Add"
Step 5: Test Your Space
- Go back to "App" tab
- Your Space should be running!
- Try the example prompts or ask a question
Configuration
- Model: anthropic/claude-3.5-sonnet
- API Key Variable: API_KEY
- Access Code Variable: ACCESS_CODE
Faculty Configuration
If you set HF_TOKEN
and SPACE_ID
environment variables, a Configuration tab will appear allowing you to:
- Edit the system prompt
- Change the AI model
- Update example prompts
- Modify grounding URLs
- Adjust temperature and response length
- Lock configuration to prevent further changes
Changes save automatically and the Space restarts to apply them.