milwright commited on
Commit
a20cbae
·
verified ·
1 Parent(s): ea5c48c

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -69
README.md DELETED
@@ -1,69 +0,0 @@
1
- ---
2
- title: My Custom Space
3
- emoji: 🤖
4
- colorFrom: blue
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 4.44.1
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- # My Custom Space
13
-
14
- An AI research assistant tailored for academic inquiry and scholarly dialogue
15
-
16
- ## Quick Deploy to HuggingFace Spaces
17
-
18
- ### Step 1: Create the Space
19
- 1. Go to https://huggingface.co/spaces
20
- 2. Click "Create new Space"
21
- 3. Choose a name for your Space
22
- 4. Select **Gradio** as the SDK
23
- 5. Set visibility (Public/Private)
24
- 6. Click "Create Space"
25
-
26
- ### Step 2: Upload Files
27
- 1. In your new Space, click "Files" tab
28
- 2. Upload these files from the zip:
29
- - `app.py`
30
- - `requirements.txt`
31
- 3. Wait for "Building" to complete
32
-
33
- ### Step 3: Add API Key
34
- 1. Go to Settings (gear icon)
35
- 2. Click "Variables and secrets"
36
- 3. Click "New secret"
37
- 4. Name: `OPENROUTER_API_KEY`
38
- 5. Value: Your OpenRouter API key
39
- 6. Click "Add"
40
-
41
- ### Step 4: Configure Access Control (Optional)
42
- Your Space is configured with access code protection. Students will need to enter the access code to use the chatbot.
43
-
44
- **Access Code**: `TLC`
45
-
46
- To disable access protection:
47
- 1. Edit `app.py` in your Space
48
- 2. Change `ACCESS_CODE = "TLC"` to `ACCESS_CODE = ""`
49
- 3. The Space will rebuild automatically
50
-
51
-
52
-
53
- ### Step 5: Get Your API Key
54
- 1. Go to https://openrouter.ai/keys
55
- 2. Sign up/login if needed
56
- 3. Click "Create Key"
57
- 4. Copy the key (starts with `sk-or-`)
58
-
59
- ### Step 6: Test Your Space
60
- - Go back to "App" tab
61
- - Your Space should be running!
62
- - Try the example prompts or ask a question
63
-
64
- ## Configuration
65
-
66
- - **Model**: google/gemma-3-27b-it
67
- - **Temperature**: 0.7
68
- - **Max Tokens**: 500
69
- - **API Key Variable**: OPENROUTER_API_KEY