{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "AnNkJH3Z5m4G" }, "source": [ "# Hướng Dẫn Sử Dụng Clone Giọng Đọc 🎤 - Phát triển bởi Lý Trần" ] }, { "cell_type": "markdown", "metadata": { "id": "OOSUWWEw5H-t" }, "source": [ "## 1. Cài đặt ứng dụng\n", "\n", "Chờ tải kho lưu trữ từ GitHub và cài đặt tất cả các gói cần thiết" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "cellView": "form", "id": "bO7B4GlvbY6n" }, "outputs": [], "source": [ "#@title ⚙️ Cài đặt\n", "!git clone https://huggingface.co/spaces/LTTEAM/Clone\n", "!pip install chatterbox-tts\n", "!pip install edge_tts\n", "!pip install gradio pydub scipy\n", "!pip install webrtcvad\n", "!apt install ffmpeg\n", "!pip install pysrt\n", "%cd /content/Clone/\n", "file_path = \"app.py\"\n", "\n", "with open(file_path, \"r\", encoding=\"utf-8\") as f:\n", " code = f.read()\n", "\n", "# Replace the line\n", "updated_code = code.replace(\n", " \"demo.queue().launch()\",\n", " \"demo.queue().launch(share=True)\"\n", ")\n", "\n", "with open(file_path, \"w\", encoding=\"utf-8\") as f:\n", " f.write(updated_code)\n", "\n", "print(\"✅ Updated 'demo.queue().launch()' to include share=True\")" ] }, { "cell_type": "markdown", "metadata": { "id": "k2j5fAeD5QOt" }, "source": [ "## 2. Chạy ứng dụng\n", "\n", "Sau khi chạy ứng dụng sẽ có 1 liên kết để mở ứng dụng" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "cellView": "form", "id": "NeApPz44dgPP" }, "outputs": [], "source": [ "#@title ⌛️ Chạy\n", "%cd /content/Clone/\n", "!python app.py" ] }, { "cell_type": "markdown", "source": [ "Mở `URL công khai` khi nó xuất hiện đuôi ***`.gradio.live`*** ( Vidu: https://9fca9044888a41a009.gradio.live )" ], "metadata": { "id": "1ig9PCBRWbgg" } } ], "metadata": { "accelerator": "GPU", "colab": { "gpuType": "T4", "provenance": [], "collapsed_sections": [ "AnNkJH3Z5m4G", "OOSUWWEw5H-t", "k2j5fAeD5QOt" ] }, "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 0 }