LTTEAM commited on
Commit
cb53023
·
verified ·
1 Parent(s): 5c5adf3

Delete TTS.ipynb

Browse files
Files changed (1) hide show
  1. TTS.ipynb +0 -102
TTS.ipynb DELETED
@@ -1,102 +0,0 @@
1
- {
2
- "nbformat": 4,
3
- "nbformat_minor": 0,
4
- "metadata": {
5
- "colab": {
6
- "provenance": [],
7
- "collapsed_sections": [
8
- "AnNkJH3Z5m4G"
9
- ],
10
- "gpuType": "T4"
11
- },
12
- "kernelspec": {
13
- "name": "python3",
14
- "display_name": "Python 3"
15
- },
16
- "language_info": {
17
- "name": "python"
18
- },
19
- "accelerator": "GPU"
20
- },
21
- "cells": [
22
- {
23
- "cell_type": "markdown",
24
- "source": [
25
- "# Hướng Dẫn Sử Dụng Clone Giọng Đọc 🎤 - Phát triển bởi Lý Trần"
26
- ],
27
- "metadata": {
28
- "id": "AnNkJH3Z5m4G"
29
- }
30
- },
31
- {
32
- "cell_type": "markdown",
33
- "source": [
34
- "## 1. Cài đặt ứng dụng\n",
35
- "\n",
36
- "Chờ tải kho lưu trữ từ GitHub và cài đặt tất cả các gói cần thiết"
37
- ],
38
- "metadata": {
39
- "id": "OOSUWWEw5H-t"
40
- }
41
- },
42
- {
43
- "cell_type": "code",
44
- "execution_count": null,
45
- "metadata": {
46
- "id": "bO7B4GlvbY6n",
47
- "cellView": "form"
48
- },
49
- "outputs": [],
50
- "source": [
51
- "#@title ⚙️ Cài đặt\n",
52
- "!git clone https://huggingface.co/spaces/LTTEAM/Clone\n",
53
- "!pip install chatterbox-tts\n",
54
- "!pip install edge_tts\n",
55
- "!pip install gradio pydub scipy\n",
56
- "!pip install webrtcvad\n",
57
- "!apt install ffmpeg\n",
58
- "%cd /content/Clone/\n",
59
- "file_path = \"app.py\"\n",
60
- "\n",
61
- "with open(file_path, \"r\", encoding=\"utf-8\") as f:\n",
62
- " code = f.read()\n",
63
- "\n",
64
- "# Replace the line\n",
65
- "updated_code = code.replace(\n",
66
- " \"demo.queue().launch()\",\n",
67
- " \"demo.queue().launch(share=True)\"\n",
68
- ")\n",
69
- "\n",
70
- "with open(file_path, \"w\", encoding=\"utf-8\") as f:\n",
71
- " f.write(updated_code)\n",
72
- "\n",
73
- "print(\"✅ Updated 'demo.queue().launch()' to include share=True\")"
74
- ]
75
- },
76
- {
77
- "cell_type": "markdown",
78
- "source": [
79
- "## 2. Chạy ứng dụng\n",
80
- "\n",
81
- "Sau khi chạy ứng dụng sẽ có 1 liên kết để mở ứng dụng"
82
- ],
83
- "metadata": {
84
- "id": "k2j5fAeD5QOt"
85
- }
86
- },
87
- {
88
- "cell_type": "code",
89
- "source": [
90
- "#@title ⌛️ Chạy\n",
91
- "%cd /content/Clone/\n",
92
- "!python app.py"
93
- ],
94
- "metadata": {
95
- "id": "NeApPz44dgPP",
96
- "cellView": "form"
97
- },
98
- "execution_count": null,
99
- "outputs": []
100
- }
101
- ]
102
- }