Spaces:
Runtime error
Runtime error
Upload SETUP_INSTRUCTIONS.md with huggingface_hub
Browse files- SETUP_INSTRUCTIONS.md +38 -0
SETUP_INSTRUCTIONS.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Using Claude with Hugging Face Space
|
2 |
+
|
3 |
+
Since you're facing permission issues in the VS Code terminal, follow these steps:
|
4 |
+
|
5 |
+
1. In the VS Code terminal, run:
|
6 |
+
```bash
|
7 |
+
chmod +x setup_claude.sh
|
8 |
+
./setup_claude.sh
|
9 |
+
```
|
10 |
+
|
11 |
+
2. This will:
|
12 |
+
- Create a Python virtual environment
|
13 |
+
- Install necessary packages
|
14 |
+
- Set up a basic implementation in ~/hf_implementation
|
15 |
+
|
16 |
+
3. After installation, activate the environment:
|
17 |
+
```bash
|
18 |
+
source ~/claude-env/bin/activate
|
19 |
+
```
|
20 |
+
|
21 |
+
4. Navigate to the implementation directory:
|
22 |
+
```bash
|
23 |
+
cd ~/hf_implementation
|
24 |
+
```
|
25 |
+
|
26 |
+
5. Run the Gradio app:
|
27 |
+
```bash
|
28 |
+
python app.py
|
29 |
+
```
|
30 |
+
|
31 |
+
## Next Steps
|
32 |
+
|
33 |
+
With this setup, you can:
|
34 |
+
1. Create the HF implementation files
|
35 |
+
2. Develop without root permissions
|
36 |
+
3. Run your RAG application with Hugging Face models
|
37 |
+
|
38 |
+
Refer to CLAUDE_HF.md for the implementation details.
|