hchcsuim's picture
初始提交 - 不包含二進制檔案
6fd5ec9

A newer version of the Gradio SDK is available: 5.27.0

Upgrade
metadata
title: Automatic Speech Recognition Speech To Text
emoji: 🔊🔄📝
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 5.26.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Automatic-Speech-Recognition-Speech-to-Text

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Clone repository

git clone https://huggingface.co/spaces/hchcsuim/Automatic-Speech-Recognition-Speech-to-Text cd Automatic-Speech-Recognition-Speech-to-Text

windows 安裝 ffmpeg

https://ffmpeg.org/download.html 下載版本 ffmpeg-git-full.7z 解壓縮到 C:\ffmpeg 加入環境變數 系統變數 path C:\ffmpeg\bin

要在電腦環境先安裝 python 3.10

Create and activate Python environment

python -m venv env source env/bin/activate # for linux env\Scripts\activate # for windows

或者在 vscode 手動切換預設環境

Ctrl+Shift+P Python: Select Interpreter

Install dependencies

requirements.txt is for Hugging Face Spaces

pip install -r requirements_local.txt

驗證 GPU 支援

(env_new) C:\Users\user\Automatic-Speech-Recognition-Speech-to-Text>python import torch print(f"CUDA available: {torch.cuda.is_available()}") if torch.cuda.is_available(): print(f"GPU: {torch.cuda.get_device_name(0)}")

Run the app

python app.py