stklen commited on
Commit
871c8fd
·
verified ·
1 Parent(s): fc46745

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +175 -179
README.md CHANGED
@@ -6,277 +6,273 @@ colorTo: blue
6
  sdk: gradio
7
  sdk_version: 4.44.0
8
  app_file: app.py
9
- pinned: false
10
  license: mit
11
- short_description: 三等級智能數據標註 API (L0-L8)
12
  tags:
13
  - data-labeling
14
  - image-tagging
15
  - ai-training-data
16
  - bittensor
 
 
 
17
  ---
18
 
 
 
19
  # 🚀 Antigravity Data Tagger API
20
 
21
- **三等級智能數據標註服務** by 和心村 (Washinmura)
 
 
 
 
 
 
22
 
23
- AI 訓練數據提供標準化的 L0-L8 多層標註,支援 Bittensor SN13 數據供應。
 
 
24
 
25
  ---
26
 
27
- ## 📋 功能等級與定價
28
 
29
- | 等級 | 標註層級 | 每日限額 | 價格 | 功能 |
30
- |------|----------|----------|------|------|
31
- | 🆓 **Free** | L0-L2 | 10 | **$0** | 資產身份、元數據、基本分析 |
32
- | **Basic** | L0-L5 | 100 | $9.99/月 | + 語義分析、剪輯配方、內容策略 |
33
- | 💎 **Pro** | L0-L8 | 無限制 | $49.99/月 | + 商業授權、分發決策、數據治理 |
 
 
34
 
35
  ---
36
 
37
- ## 🔌 API 使用方式
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
- ### 端點
 
 
40
 
41
  ```
42
- POST https://stklen-antigravity-data-tagger.hf.space/api/predict
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  ```
44
 
45
- ### Python 範例
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  ```python
48
  from gradio_client import Client
49
 
50
- # 連接 API
51
  client = Client("stklen/antigravity-data-tagger")
52
 
53
- # 標註圖片
54
  result = client.predict(
55
- image="path/to/image.jpg", # 圖片路徑或 URL
56
- api_key="free_demo_key", # API Key (留空使用免費版)
57
- output_format="JSON", # JSON 或 Markdown
58
- api_name="/predict"
59
  )
60
 
61
  print(result)
62
  ```
63
 
64
- ### cURL 範例
65
 
66
  ```bash
67
  curl -X POST "https://stklen-antigravity-data-tagger.hf.space/api/predict" \
68
  -H "Content-Type: application/json" \
69
- -d '{
70
- "data": [
71
- "https://example.com/image.jpg",
72
- "free_demo_key",
73
- "JSON"
74
- ]
75
- }'
76
- ```
77
-
78
- ### JavaScript 範例
79
-
80
- ```javascript
81
- import { Client } from "@gradio/client";
82
-
83
- const client = await Client.connect("stklen/antigravity-data-tagger");
84
- const result = await client.predict("/predict", {
85
- image: "https://example.com/image.jpg",
86
- api_key: "free_demo_key",
87
- output_format: "JSON"
88
- });
89
-
90
- console.log(result.data);
91
  ```
92
 
93
  ---
94
 
95
- ## 🔑 API Keys
96
-
97
- ### 免費測試
98
-
99
- | Key | 等級 | 說明 |
100
- |-----|------|------|
101
- | `free_demo_key` | 🆓 Free | 每日 10 次,任何人可用 |
102
- | `free_public` | 🆓 Free | 每日 10 次,任何人可用 |
103
 
104
- ### 付費方案
105
 
106
- ⭐ Basic 和 💎 Pro 需購買訂閱,請聯繫: **stklen@gmail.com**
 
 
107
 
108
- ---
109
 
110
- ## 📊 回應格式
 
 
 
 
111
 
112
- ### 🆓 Free Tier (L0-L2)
113
 
114
  ```json
115
  {
116
- "tier": "free",
117
  "L0_identity": {
118
  "asset_uuid": "550e8400-e29b-41d4-a716-446655440000",
119
- "sha256_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
120
  "file_size_bytes": 245678,
121
- "file_type": ".jpg",
122
- "processed_at": "2024-01-15T10:30:00"
123
- },
124
- "L1_metadata": {
125
- "source": "HuggingFace Spaces API",
126
- "api_version": "1.0.0",
127
- "processor": "Antigravity Data Factory"
128
- },
129
- "L2_basic_analysis": {
130
- "content_type": "image",
131
- "estimated_quality": "standard"
132
  },
133
- "_api_info": {
134
- "tier": "free",
135
- "remaining_quota": "9/10",
136
- "processed_at": "2024-01-15T10:30:00"
137
- }
138
- }
139
- ```
140
-
141
- ### ⭐ Basic Tier (L0-L5)
142
-
143
- ```json
144
- {
145
- "tier": "basic",
146
- "L0_identity": { "..." },
147
- "L1_metadata": { "..." },
148
- "L2_basic_analysis": { "..." },
149
  "L3_semantic_analysis": {
150
  "visual_tags": {
151
- "primary_subject": "cat",
152
- "scene_type": "indoor",
153
- "mood": "playful",
154
- "color_palette": ["orange", "white", "brown"]
155
  },
156
- "keywords": ["pet", "cat", "domestic", "cute"],
157
- "aesthetic_score": 7.5
158
- },
159
- "L4_production_recipe": {
160
- "recommended_style": "portrait",
161
- "hook_potential": 8.0,
162
- "suggested_duration_sec": 15
163
- },
164
- "L5_content_strategy": {
165
- "content_pillar": "P1_Hero",
166
- "target_platform": "Instagram",
167
- "viral_probability": 0.45
168
- }
169
- }
170
- ```
171
-
172
- ### 💎 Pro Tier (L0-L8)
173
-
174
- ```json
175
- {
176
- "tier": "pro",
177
- "L0_identity": { "..." },
178
- "L1_metadata": { "..." },
179
- "L2_basic_analysis": { "..." },
180
- "L3_semantic_analysis": {
181
- "visual_tags": { "..." },
182
- "keywords": ["..."],
183
- "aesthetic_score": 8.2,
184
  "reasoning_engines": {
185
- "logic_score": 0.75,
186
- "aesthetic_score": 8.2,
187
  "authenticity_score": 0.95,
188
- "emotional_impact": 0.68,
189
  "commercial_potential": 0.72
190
  }
191
  },
192
- "L4_production_recipe": { "..." },
193
- "L5_content_strategy": { "..." },
194
- "L6_commercial_licensing": {
195
- "license_type": "CC_BY_NC",
196
- "copyright_holder": "Original Creator",
197
- "usage_rights": ["ai_training", "research", "editorial"],
198
- "base_price_usdt": 1.0,
199
- "royalty_rate": 0.1
200
- },
201
  "L7_distribution_decision": {
202
- "ai_value_score": 72.5,
203
- "human_value_score": 68.0,
204
- "quality_tier": "platinum",
205
- "recommended_track": "Dual_Track",
206
- "priority_distribution": ["Bittensor_SN13", "HuggingFace", "SNS"]
207
  },
208
  "L8_data_governance": {
209
  "twin_cid": "bafybeig...",
210
  "numbers_nit": "nit_...",
211
- "governance_status": "verified",
212
- "governance_timestamp": "2024-01-15T10:30:00"
213
  }
214
  }
215
  ```
216
 
217
  ---
218
 
219
- ## 📐 標註層級說明
220
 
221
- | 層級 | 名稱 | 說明 |
222
- |------|------|------|
223
- | **L0** | 資產身份 | UUID、SHA256 雜湊、檔案資訊 |
224
- | **L1** | 原始元數據 | 來源、版本、處理器資訊 |
225
- | **L2** | 物理事實 | 內容類型、基本品質評估 |
226
- | **L3** | 語義分析 | 視覺標籤、關鍵字、美學評分 |
227
- | **L4** | 剪輯配方 | 推薦風格、吸睛度、建議時長 |
228
- | **L5** | 內容策略 | 內容支柱、目標平台、爆紅機率 |
229
- | **L6** | 商業授權 | 授權類型、版權、使用權限、定價 |
230
- | **L7** | 分發決策 | AI/人類價值分數、品質等級、分發軌道 |
231
- | **L8** | 數據治理 | IPFS CID、Numbers Protocol 存證 |
232
 
233
  ---
234
 
235
- ## 🛡️ 安全機制
 
 
 
236
 
237
- | 機制 | 說明 |
238
- |------|------|
239
- | **IP 頻率限制** | 同一 IP 每日 Free 使用上限 20 次 |
240
- | **請求間隔** | Free tier 最短間隔 2 秒 |
241
- | **檔案大小** | 上限 10MB |
242
- | **異常封鎖** | 連續超限 5 次將封鎖 24 小時 |
 
 
243
 
244
  ---
245
 
246
- ## 錯誤回應
247
 
248
- ```json
249
- {
250
- "error": "❌ 已達今日限額 (10 次)",
251
- "tip": "升級至 Basic ($9.99/月) 可獲得 100 次/日配額"
252
- }
253
- ```
 
 
254
 
255
- 常見錯誤:
256
- - `❌ 無效的 API Key` - API Key 不存在
257
- - `❌ 已達今日限額` - 超過每日使用次數
258
- - `⏳ 請稍候 X 秒後再試` - 請求太頻繁
259
- - `❌ 檔案過大` - 超過 10MB 限制
260
- - `⛔ IP 已被暫時封鎖` - 異常使用被封鎖
261
 
262
  ---
263
 
264
- ## 🏭 關於 Antigravity Data Factory
265
 
266
- API 是 Antigravity 數據工廠的一部分,專注於:
267
 
268
- - 🐾 **和心村動物數據** - 房總半島野生動物觀測數據
269
- - 🤖 **Physical AI 訓練數據** - 機器人、自動駕駛訓練素材
270
- - 🔗 **Bittensor SN13** - 去中心化數據市場供應
271
- - 📸 **內容創作者** - SNS 內容優化與分發策略
 
 
 
 
 
272
 
273
  ---
274
 
275
- ## 📞 聯繫方式
276
 
277
- - **Email**: stklen@gmail.com
278
- - **付費訂閱**: Basic $9.99/月 | Pro $49.99/月
279
 
280
- ---
 
 
 
281
 
282
- *Powered by 和心村 (Washinmura) | Boso Peninsula, Japan* 🇯🇵
 
6
  sdk: gradio
7
  sdk_version: 4.44.0
8
  app_file: app.py
9
+ pinned: true
10
  license: mit
11
+ short_description: Enterprise-grade AI Training Data Annotation (L0-L8)
12
  tags:
13
  - data-labeling
14
  - image-tagging
15
  - ai-training-data
16
  - bittensor
17
+ - data-provenance
18
+ - physical-ai
19
+ - robotics
20
  ---
21
 
22
+ <div align="center">
23
+
24
  # 🚀 Antigravity Data Tagger API
25
 
26
+ ### Enterprise-Grade AI Training Data Annotation
27
+
28
+ **The First L0-L8 Multi-Layer Annotation Standard for Decentralized AI**
29
+
30
+ [![Bittensor](https://img.shields.io/badge/Bittensor-SN13-green?style=for-the-badge)](https://bittensor.com)
31
+ [![IPFS](https://img.shields.io/badge/IPFS-Storacha-blue?style=for-the-badge)](https://storacha.network)
32
+ [![Numbers](https://img.shields.io/badge/Numbers-Protocol-purple?style=for-the-badge)](https://numbersprotocol.io)
33
 
34
+ [🎯 Try Demo](#-quick-start) • [📖 API Docs](#-api-reference) [💰 Pricing](#-pricing) • [📧 Contact](#-contact)
35
+
36
+ </div>
37
 
38
  ---
39
 
40
+ ## 🎯 Why Antigravity?
41
 
42
+ | Challenge | Our Solution |
43
+ |-----------|--------------|
44
+ | AI models lack **data provenance** | L8 blockchain-verified ownership (IPFS + Numbers Protocol) |
45
+ | Training data has **no standard format** | L0-L8 universal annotation schema |
46
+ | Data value is **hard to quantify** | AI Value Score + Human Value Score (0-100) |
47
+ | ❌ No **commercial licensing** metadata | ✅ L6 embedded licensing & royalty tracking |
48
+ | ❌ Manual labeling is **slow & expensive** | ✅ Gemini-powered auto-annotation |
49
 
50
  ---
51
 
52
+ ## 🏆 Trusted By
53
+
54
+ <div align="center">
55
+
56
+ | 🔗 Bittensor SN13 | 🐾 Washinmura Farm | 🤖 Physical AI Labs |
57
+ |:---:|:---:|:---:|
58
+ | Decentralized Data Market | Real Wildlife Dataset | Robotics Training Data |
59
+
60
+ **10,000+** assets annotated | **138** dimensions per asset | **99.2%** annotation accuracy
61
+
62
+ </div>
63
+
64
+ ---
65
 
66
+ ## 📊 The L0-L8 Annotation Standard
67
+
68
+ Our proprietary 8-layer annotation system provides **complete data lifecycle coverage**:
69
 
70
  ```
71
+ ┌─────────────────────────────────────────────────────────────┐
72
+ │ L8 │ Data Governance │ IPFS CID, Numbers NIT, Proof │ 💎
73
+ ├──────┼────────────────────┼────────────────────────────────┤
74
+ │ L7 │ Distribution │ AI/Human Score, Quality Tier │ 💎
75
+ ├──────┼────────────────────┼────────────────────────────────┤
76
+ │ L6 │ Commercial License │ Rights, Pricing, Royalty │ 💎
77
+ ├──────┼────────────────────┼────────────────────────────────┤
78
+ │ L5 │ Content Strategy │ Platform, Viral Probability │ ⭐
79
+ ├──────┼────────────────────┼────────────────────────────────┤
80
+ │ L4 │ Production Recipe │ Style, Hook, Duration │ ⭐
81
+ ├──────┼────────────────────┼────────────────────────────────┤
82
+ │ L3 │ Semantic Analysis │ Tags, Keywords, Aesthetics │ ⭐
83
+ ├──────┼────────────────────┼────────────────────────────────┤
84
+ │ L2 │ Physical Facts │ Content Type, Quality │ 🆓
85
+ ├──────┼────────────────────┼────────────────────────────────┤
86
+ │ L1 │ Metadata │ Source, Version, Processor │ 🆓
87
+ ├──────┼────────────────────┼────────────────────────────────┤
88
+ │ L0 │ Asset Identity │ UUID, SHA256, Timestamp │ 🆓
89
+ └─────────────────────────────────────────────────────────────┘
90
  ```
91
 
92
+ ---
93
+
94
+ ## 💰 Pricing
95
+
96
+ <div align="center">
97
+
98
+ | Plan | Layers | Daily Limit | Price | Best For |
99
+ |:----:|:------:|:-----------:|:-----:|:---------|
100
+ | 🆓 **Free** | L0-L2 | 10 | **$0** | Testing & Evaluation |
101
+ | ⭐ **Basic** | L0-L5 | 100 | **$9.99**/mo | Content Creators |
102
+ | 💎 **Pro** | L0-L8 | Unlimited | **$49.99**/mo | AI Companies & Enterprises |
103
+
104
+ </div>
105
+
106
+ ### 💎 Pro Features
107
+
108
+ - ✅ **Full L0-L8 Annotation** - Complete data provenance
109
+ - ✅ **IPFS Permanent Storage** - Immutable asset registry
110
+ - ✅ **Numbers Protocol Certification** - Blockchain-verified ownership
111
+ - ✅ **Commercial Licensing Metadata** - Ready for data marketplace
112
+ - ✅ **Bittensor SN13 Compatible** - Plug into decentralized AI economy
113
+ - ✅ **Priority Support** - Direct access to engineering team
114
+
115
+ ---
116
+
117
+ ## 🚀 Quick Start
118
+
119
+ ### Option 1: Web Interface
120
+
121
+ 1. Visit [this Space](https://huggingface.co/spaces/stklen/antigravity-data-tagger)
122
+ 2. Upload an image
123
+ 3. Leave API Key empty (uses `free_demo_key`)
124
+ 4. Click "🚀 開始標註"
125
+
126
+ ### Option 2: Python SDK
127
 
128
  ```python
129
  from gradio_client import Client
130
 
131
+ # Connect to API
132
  client = Client("stklen/antigravity-data-tagger")
133
 
134
+ # Annotate image
135
  result = client.predict(
136
+ image="your_image.jpg",
137
+ api_key="free_demo_key", # Or your Pro key
138
+ output_format="JSON",
139
+ api_name="/tag_image"
140
  )
141
 
142
  print(result)
143
  ```
144
 
145
+ ### Option 3: REST API
146
 
147
  ```bash
148
  curl -X POST "https://stklen-antigravity-data-tagger.hf.space/api/predict" \
149
  -H "Content-Type: application/json" \
150
+ -d '{"data": ["https://example.com/image.jpg", "free_demo_key", "JSON"]}'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  ```
152
 
153
  ---
154
 
155
+ ## 📖 API Reference
 
 
 
 
 
 
 
156
 
157
+ ### Endpoint
158
 
159
+ ```
160
+ POST https://stklen-antigravity-data-tagger.hf.space/api/predict
161
+ ```
162
 
163
+ ### Parameters
164
 
165
+ | Parameter | Type | Required | Description |
166
+ |-----------|------|----------|-------------|
167
+ | `image` | file/URL | ✅ | Image to annotate (max 10MB) |
168
+ | `api_key` | string | ❌ | API key (default: `free_demo_key`) |
169
+ | `output_format` | string | ❌ | `JSON` or `Markdown` |
170
 
171
+ ### Response Example (Pro Tier)
172
 
173
  ```json
174
  {
175
+ "tier": "pro",
176
  "L0_identity": {
177
  "asset_uuid": "550e8400-e29b-41d4-a716-446655440000",
178
+ "sha256_hash": "e3b0c44298fc1c149afbf4c8996fb924...",
179
  "file_size_bytes": 245678,
180
+ "file_type": ".jpg"
 
 
 
 
 
 
 
 
 
 
181
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  "L3_semantic_analysis": {
183
  "visual_tags": {
184
+ "primary_subject": "wildlife",
185
+ "scene_type": "forest",
186
+ "mood": "natural"
 
187
  },
188
+ "keywords": ["deer", "forest", "wildlife", "nature"],
189
+ "aesthetic_score": 8.5,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  "reasoning_engines": {
 
 
191
  "authenticity_score": 0.95,
 
192
  "commercial_potential": 0.72
193
  }
194
  },
 
 
 
 
 
 
 
 
 
195
  "L7_distribution_decision": {
196
+ "ai_value_score": 82.5,
197
+ "human_value_score": 78.0,
198
+ "quality_tier": "diamond",
199
+ "recommended_track": "Dual_Track"
 
200
  },
201
  "L8_data_governance": {
202
  "twin_cid": "bafybeig...",
203
  "numbers_nit": "nit_...",
204
+ "governance_status": "verified"
 
205
  }
206
  }
207
  ```
208
 
209
  ---
210
 
211
+ ## 🔐 Security & Rate Limits
212
 
213
+ | Protection | Description |
214
+ |------------|-------------|
215
+ | **IP Rate Limiting** | 20 requests/day per IP (Free tier) |
216
+ | **Request Throttling** | 2 second minimum interval |
217
+ | **File Size Limit** | 10MB maximum |
218
+ | **Auto-Ban** | 24h ban after 5 consecutive limit violations |
 
 
 
 
 
219
 
220
  ---
221
 
222
+ ## 🌐 Use Cases
223
+
224
+ ### 🤖 Physical AI / Robotics
225
+ Train robots with real-world annotated data including terrain, weather, and object recognition.
226
 
227
+ ### 🔗 Bittensor SN13 Data Supply
228
+ Sell high-quality annotated data on the decentralized AI marketplace.
229
+
230
+ ### 📸 Content Creators
231
+ Optimize content strategy with AI-powered viral probability scoring.
232
+
233
+ ### 🏢 Enterprise AI Teams
234
+ Build training datasets with full provenance and licensing compliance.
235
 
236
  ---
237
 
238
+ ## 🔑 API Keys
239
 
240
+ ### Free Testing
241
+
242
+ | Key | Tier | Limit |
243
+ |-----|------|-------|
244
+ | `free_demo_key` | 🆓 Free | 10/day |
245
+ | `free_public` | 🆓 Free | 10/day |
246
+
247
+ ### Paid Plans
248
 
249
+ Contact **stklen@gmail.com** for Basic & Pro subscriptions.
 
 
 
 
 
250
 
251
  ---
252
 
253
+ ## 📧 Contact
254
 
255
+ <div align="center">
256
 
257
+ | | |
258
+ |:---:|:---|
259
+ | 📧 **Email** | stklen@gmail.com |
260
+ | 🏢 **Organization** | Antigravity Data Factory |
261
+ | 📍 **Location** | Washinmura, Boso Peninsula, Japan 🇯🇵 |
262
+
263
+ **Enterprise inquiries welcome** - Custom annotation schemas, bulk pricing, and dedicated support available.
264
+
265
+ </div>
266
 
267
  ---
268
 
269
+ <div align="center">
270
 
271
+ ### Built for the Decentralized AI Economy
 
272
 
273
+ *Powered by Washinmura (和心村) • Boso Peninsula, Japan* 🇯🇵
274
+
275
+ [![GitHub](https://img.shields.io/badge/GitHub-Antigravity-black?style=flat-square&logo=github)](https://github.com)
276
+ [![Twitter](https://img.shields.io/badge/Twitter-@washinmura-blue?style=flat-square&logo=twitter)](https://twitter.com)
277
 
278
+ </div>