|
|
--- |
|
|
title: AI Assistant-Precalculus Function Applications |
|
|
emoji: π¬ |
|
|
colorFrom: blue |
|
|
colorTo: green |
|
|
sdk: gradio |
|
|
sdk_version: 5.42.0 |
|
|
app_file: app.py |
|
|
pinned: false |
|
|
license: mit |
|
|
short_description: Function applications and transformations |
|
|
--- |
|
|
|
|
|
# AI Assistant-Precalculus Function Applications |
|
|
|
|
|
AI educational assistant helping students conduct AI-supported research on real-life applications of precalculus functions. Your primary task is to guide students in selecting a real-world scenario and modeling it using any of function learned in Precalculus course. You will assist in setting up the function, solving it, and interpreting the results. |
|
|
|
|
|
## Quick Setup |
|
|
|
|
|
### Step 1: Configure API Key (Required) |
|
|
1. Get your API key from https://openrouter.ai/keys |
|
|
2. In Settings β Variables and secrets |
|
|
3. Add secret: `API_KEY` |
|
|
4. Paste your OpenRouter API key |
|
|
|
|
|
### Step 2: Configure HuggingFace Token (Optional) |
|
|
1. Get your token from https://huggingface.co/settings/tokens |
|
|
2. In Settings β Variables and secrets |
|
|
3. Add secret: `HF_TOKEN` |
|
|
4. Paste your HuggingFace token (needs write permissions) |
|
|
5. This enables automatic configuration updates |
|
|
|
|
|
|
|
|
### Step 3: Set Access Code |
|
|
1. In Settings β Variables and secrets |
|
|
2. Add secret: `ACCESS_CODE` |
|
|
3. Set your chosen password |
|
|
4. Share with authorized users |
|
|
|
|
|
|
|
|
### Step 3: Test Your Space |
|
|
Your Space should now be running! Try the example prompts or ask your own questions. |
|
|
|
|
|
## Configuration |
|
|
- **Model**: openai/gpt-4o-mini |
|
|
- **API Key Variable**: API_KEY |
|
|
- **HF Token Variable**: HF_TOKEN (for auto-updates) |
|
|
- **Access Control**: Enabled (ACCESS_CODE) |
|
|
|
|
|
## Support |
|
|
For help, visit the HuggingFace documentation or community forums. |