alisaadhq commited on
Commit
299c36e
·
verified ·
1 Parent(s): 5ec2b90

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +146 -14
README.md CHANGED
@@ -8,21 +8,153 @@ pinned: false
8
  app_port: 7860
9
  ---
10
 
11
- # Auto Clipper AI 🚀
12
 
13
- An automated AI tool to extract viral clips from long videos using Faster-Whisper and Llama-3.
 
14
 
15
- ## Features
16
- - 🎙️ Automatic Speech Recognition (STT)
17
- - 🤖 AI-powered viral segment analysis
18
- - ✨ Multiple video styles (Cinematic Blur, Split Screen, Smart Crop)
19
- - 📝 Automatic TikTok-style captions
20
 
21
- ## Local Setup
22
- 1. Clone the repository
23
- 2. Install dependencies: `pip install -r requirements.txt`
24
- 3. Set up `.env` with your `GROQ_API_KEY`
25
- 4. Run: `uvicorn main:app --port 8000`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
- ## API Endpoints
28
- - `POST /auto-clip`: Upload a video and get viral clips.
 
8
  app_port: 7860
9
  ---
10
 
11
+ # ✂️ Auto-Clip API
12
 
13
+ > **ارفع فيديو طويل واستلم كليبس فيرال جاهزة أوتوماتيك بـ AI**
14
+ > Upload a long video — get viral-ready clips automatically with AI
15
 
16
+ [![HuggingFace Space](https://img.shields.io/badge/🤗%20HuggingFace-auto__cliper-FFD21E)](https://huggingface.co/spaces/ex510/auto_cliper)
17
+ [![API Docs](https://img.shields.io/badge/Swagger-API%20Docs-85EA2D?logo=swagger)](https://huggingface.co/spaces/ex510/auto_cliper)
18
+ [![Duplicate Space](https://img.shields.io/badge/🤗-Duplicate%20Space-blue)](https://huggingface.co/spaces/ex510/auto_cliper?duplicate=true)
 
 
19
 
20
+ ---
21
+
22
+ ## 🧠 إيه هو Auto-Clip؟ / What is Auto-Clip?
23
+
24
+ **Auto-Clip** هو API بيعمل واحدة بس:
25
+
26
+ ```
27
+ فيديو طويل → AI → كليبس فيرال جاهزة للنشر
28
+ ```
29
+
30
+ من غير ما تعمل أي حاجة يدوي — بدون مونتاج، بدون سكريبت، بدون تعب.
31
+ بس ارفع الفيديو، حدد الستايل، وخد الكليبس.
32
+
33
+ **Auto-Clip** does one thing:
34
+
35
+ ```
36
+ Long video → AI → Viral-ready clips for posting
37
+ ```
38
+
39
+ No manual editing. No scripting. No hassle.
40
+ Just upload, pick a style, get your clips.
41
+
42
+ ---
43
+
44
+ ## 🚀 ابدأ في 3 خطوات / Start in 3 Steps
45
+
46
+ ### الخطوة 1 — ارفع الفيديو
47
+
48
+ ```bash
49
+ curl -X POST https://huggingface.co/spaces/ex510/auto_cliper/auto-clip \
50
+ -F "video=@your_video.mp4" \
51
+ -F "style=vertical_full" \
52
+ -F "caption_mode=word" \
53
+ -F "caption_style=tiktok_bold"
54
+ ```
55
+
56
+ ### الخطوة 2 — تابع التقدم
57
+
58
+ ```bash
59
+ curl https://huggingface.co/spaces/ex510/auto_cliper/status/{task_id}
60
+ ```
61
+
62
+ ```
63
+ 1–99 = شغال ⏳ | 100 = خلص ✅ | -1 = فشل ❌
64
+ ```
65
+
66
+ ### الخطوة 3 — نزّل الكليبات
67
+
68
+ ```bash
69
+ curl https://huggingface.co/spaces/ex510/auto_cliper/download/{filename}
70
+ ```
71
+
72
+ ---
73
+
74
+ ## 📡 الـ Endpoints / Endpoints
75
+
76
+ | Method | Endpoint | الوظيفة |
77
+ |--------|----------|---------|
78
+ | `POST` | `/auto-clip` | ارفع فيديو وابدأ المعالجة |
79
+ | `GET` | `/status/{task_id}` | تابع تقدم التاسك |
80
+ | `GET` | `/download/{filename}` | نزّل كليب معين |
81
+ | `GET` | `/files` | شوف كل الكليبس الموجودة |
82
+
83
+ ---
84
+
85
+ ## 🎬 الستايلات المتاحة / Available Styles
86
+
87
+ | Style | المعنى | مناسب لـ |
88
+ |-------|--------|----------|
89
+ | `cinematic` | سينمائي كلاسيك | YouTube / LinkedIn |
90
+ | `cinematic_blur` | خلفية مبلورة | YouTube Shorts |
91
+ | `vertical_full` | فيرتيكال كامل | TikTok / Reels |
92
+ | `split_vertical` | شاشتين جنب بعض | Reaction / Commentary |
93
+ | `split_horizontal` | شاشتين فوق بعض | Tutorial / Compare |
94
+
95
+ ---
96
+
97
+ ## 💬 الكابشن / Captions
98
+
99
+ ### Mode — طريقة ظهور الكلام
100
+
101
+ | Mode | الشرح |
102
+ |------|-------|
103
+ | `sentence` | جملة كاملة في وقت واحد |
104
+ | `word` | كلمة كلمة |
105
+ | `highlight_word` | كلمة كلمة مع تمييز |
106
+ | `none` | بدون كابشن |
107
+
108
+ ### Style — شكل الكابشن
109
+
110
+ | Style | المظهر |
111
+ |-------|--------|
112
+ | `classic` | كلاسيك سادة |
113
+ | `modern_glow` | توهج عصري |
114
+ | `tiktok_bold` | تيك توك عريض |
115
+ | `tiktok_neon` | نيون تيك توك |
116
+ | `youtube_clean` | يوتيوب نظيف |
117
+ | `youtube_box` | يوتيوب بوكس |
118
+
119
+ ---
120
+
121
+ ## ⚡ Async vs Sync — إيه الفرق؟
122
+
123
+ ```
124
+ بعتّ webhook_url ✅
125
+ └── بيشتغل في الخلفية
126
+ └── لما يخلص بيبعتلك النتيجة على الـ webhook
127
+ └── مناسب للفيديوهات الطويلة
128
+
129
+ ما بعتّش webhook_url ✅
130
+ └── بيستنى ويرجعلك النتيجة في نفس الريكوست
131
+ └── مناسب للفيديوهات القصيرة
132
+ ```
133
+
134
+ ---
135
+
136
+ ## 🔁 Clone & Self-Host — اعمل نسختك الخاصة
137
+
138
+ > تقدر تعمل Clone للـ Space ده على HuggingFace وتشغّله على نفسك مجاناً
139
+
140
+ [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg)](https://huggingface.co/spaces/ex510/auto_cliper?duplicate=true)
141
+
142
+ **الخطوات:**
143
+ 1. اضغط "Duplicate this Space" فوق
144
+ 2. اختار اسم للـ Space الجديد
145
+ 3. اضغط Duplicate — وخلاص ✅
146
+
147
+ ---
148
+
149
+ ## 🔗 روابط مهمة / Links
150
+
151
+ | | |
152
+ |--|--|
153
+ | 🤗 **Live API** | [huggingface.co/spaces/ex510/auto_cliper](https://huggingface.co/spaces/ex510/auto_cliper) |
154
+ | 📖 **Swagger Docs** | نفس الرابط — `/docs` |
155
+ | 💬 **Discord Community** | [discord.gg/ZsqyhvAq](https://discord.gg/ZsqyhvAq) |
156
+ | 🐙 **GitHub** | [github.com/expher510](https://github.com/expher510) |
157
+
158
+ ---
159
 
160
+ *من مجتمع **alisaadeng** — بنبني مع بعض 🚀*