File size: 3,267 Bytes
efc0d7e 2c4cdea efc0d7e 2c4cdea efc0d7e 2c4cdea ff6b62d 2c4cdea ff6b62d 2c4cdea ff6b62d 2c4cdea ff6b62d 2c4cdea ff6b62d 2c4cdea ff6b62d 2c4cdea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | ---
title: Health Article Generator
emoji: π₯
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.43.1
app_file: app.py
pinned: false
---
# Health Article Generator
Aplikasi AI untuk generate artikel kesehatan menggunakan template AI yang cerdas dengan fitur text-to-speech dan download audio MP3.
## π Features
- **AI Text Generation**: Menggunakan template AI yang cerdas untuk generate artikel kesehatan berkualitas tinggi
- **Topik Kesehatan**: 20+ topik kesehatan yang dapat dipilih
- **Customizable Length**: Pilihan panjang artikel (Pendek, Sedang, Panjang)
- **Subtopik**: Hingga 5 subtopik opsional untuk fokus artikel
- **Text-to-Speech**: Konversi artikel ke audio dengan Google TTS
- **Download Audio**: Download hasil audio dalam format MP3
- **Modern UI**: Interface yang user-friendly dengan Gradio 5.43.1
## π Requirements
- Python 3.8+
- CUDA (opsional, untuk GPU acceleration)
- 2GB+ RAM (untuk template-based generation)
## π οΈ Installation
1. Clone repository ini:
```bash
git clone <repository-url>
cd ersi
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Run aplikasi:
```bash
python app.py
```
## π Deployment ke Hugging Face Spaces
1. Buat akun di [Hugging Face](https://huggingface.co)
2. Buat Space baru dengan tipe "Gradio"
3. Upload semua file ke repository Space
4. Set environment variables jika diperlukan
5. Space akan otomatis deploy
### File yang diperlukan untuk deployment:
- `app.py` - Aplikasi utama
- `requirements.txt` - Dependencies
- `README.md` - Dokumentasi
- `.gitignore` - Git ignore file
## π Cara Penggunaan
1. **Pilih Topik**: Pilih topik kesehatan dari dropdown
2. **Set Panjang**: Pilih panjang artikel yang diinginkan
3. **Tambah Subtopik** (Opsional): Masukkan hingga 5 subtopik untuk fokus artikel
4. **Generate**: Klik tombol "Generate Article"
5. **Convert to Speech**: Klik "Convert to Speech" untuk generate audio
6. **Download**: Download file MP3 yang dihasilkan
## π― Topik Kesehatan yang Tersedia
- Nutrisi dan Diet Sehat
- Olahraga dan Kebugaran
- Kesehatan Mental
- Penyakit Jantung
- Diabetes dan Gula Darah
- Kesehatan Pencernaan
- Kesehatan Kulit
- Kesehatan Mata
- Kesehatan Gigi dan Mulut
- Kesehatan Reproduksi
- Kesehatan Anak
- Kesehatan Lansia
- Pencegahan Kanker
- Kesehatan Tulang dan Sendi
- Kesehatan Pernapasan
- Kesehatan Hati
- Kesehatan Ginjal
- Kesehatan Saraf
- Kesehatan Kardiovaskular
- Kesehatan Imunitas
## π§ Technical Details
- **Model**: AI Health Templates (Template-based)
- **Framework**: Gradio 5.43.1
- **TTS Engine**: Google Text-to-Speech (gTTS)
- **Audio Format**: MP3
- **Language**: Indonesian
## π Notes
- Template AI sudah terintegrasi dalam aplikasi, tidak perlu download model
- Aplikasi ringan dan cepat tanpa memerlukan GPU
- Audio generation membutuhkan koneksi internet untuk Google TTS
- File audio temporary akan dihapus otomatis
- Tidak memerlukan permission khusus atau API key
## π€ Contributing
Pull requests dan suggestions sangat diterima! Untuk perubahan besar, silakan buka issue terlebih dahulu.
## π License
MIT License - lihat file LICENSE untuk detail.
## π Support
Jika mengalami masalah, silakan buat issue di repository ini atau hubungi developer.
|