tommytracx commited on
Commit
ebe9084
Β·
verified Β·
1 Parent(s): accd8f2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +53 -2
README.md CHANGED
@@ -11,12 +11,63 @@ short_description: Generate any application with DeepSeek
11
  models:
12
  - deepseek-ai/DeepSeek-V3-0324
13
  - deepseek-ai/DeepSeek-R1-0528
 
 
 
 
 
14
  ---
15
 
16
  # DeepSite 🐳
17
 
18
  DeepSite is a coding platform powered by DeepSeek AI, designed to make coding smarter and more efficient. Tailored for developers, data scientists, and AI engineers, it integrates generative AI into your coding projects to enhance creativity and productivity.
19
 
20
- ## How to use it locally
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
- Follow [this discussion](https://huggingface.co/spaces/enzostvs/deepsite/discussions/74)
 
11
  models:
12
  - deepseek-ai/DeepSeek-V3-0324
13
  - deepseek-ai/DeepSeek-R1-0528
14
+ # ── OAuth settings ────────────────────────────────────────────────
15
+ hf_oauth: true # enable β€œSign-in with HF”
16
+ hf_oauth_expiration_minutes: 480 # keep session tokens 8 h
17
+ hf_oauth_scopes: # default is openid profile
18
+ - write-repos
19
  ---
20
 
21
  # DeepSite 🐳
22
 
23
  DeepSite is a coding platform powered by DeepSeek AI, designed to make coding smarter and more efficient. Tailored for developers, data scientists, and AI engineers, it integrates generative AI into your coding projects to enhance creativity and productivity.
24
 
25
+ ---
26
+
27
+ ## Sign-in with Hugging Face
28
+
29
+ > The first time you open the Space you’ll see a β€œSign-in with HF” button.
30
+ > Accept the permissions prompt and you’ll be redirected back to DeepSite authenticated.
31
+
32
+ **Redirect URL**
33
+
34
+ ```
35
+ https://tommytracx-deepsite.hf.space/auth/login
36
+ ```
37
+
38
+ Add this URL to:
39
+
40
+ 1. **Space variables**
41
+ `REDIRECT_URI=https://tommytracx-deepsite.hf.space/auth/login`
42
+ 2. **OAuth app β†’ Authorization callback URLs**
43
+
44
+ Required secrets (Settings β†’ Secrets):
45
+
46
+ | Name | Value |
47
+ |------|-------|
48
+ | `OAUTH_CLIENT_ID` | client ID from your OAuth app |
49
+ | `OAUTH_CLIENT_SECRET` | client secret from your OAuth app |
50
+ | `DEFAULT_HF_TOKEN` | personal access token (scope: read) |
51
+
52
+ ---
53
+
54
+ ## Running locally
55
+
56
+ Clone the repo and provide the same variables in a local `.env` file:
57
+
58
+ ```bash
59
+ APP_PORT=5173
60
+ OAUTH_CLIENT_ID=…
61
+ OAUTH_CLIENT_SECRET=…
62
+ DEFAULT_HF_TOKEN=…
63
+ REDIRECT_URI=http://localhost:5173/auth/login
64
+ ```
65
+
66
+ Then build and run the Docker image:
67
+
68
+ ```bash
69
+ docker build -t deepsite .
70
+ docker run -p 5173:5173 --env-file .env deepsite
71
+ ```
72
 
73
+ The app will be available at <http://localhost:5173> and the OAuth flow will work against Hugging Face just like in the hosted Space.