Spaces:
Sleeping
Sleeping
Madhuslista
commited on
Merge branch 'feature/setup' into main
Browse files- hf_cli.sh +19 -0
- requirements.txt +2 -0
hf_cli.sh
CHANGED
@@ -4,6 +4,25 @@
|
|
4 |
# Get parent directory absolute path
|
5 |
REPO_DIR="$(pwd)"
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
# Check if .venv is active, if not activate it
|
9 |
if [[ -z $VIRTUAL_ENV ]]; then
|
|
|
4 |
# Get parent directory absolute path
|
5 |
REPO_DIR="$(pwd)"
|
6 |
|
7 |
+
# Check if .venv exists, if not create it
|
8 |
+
if [[ ! -d .venv ]]; then
|
9 |
+
# Create virtual environments
|
10 |
+
python3 -m venv .venv
|
11 |
+
|
12 |
+
# Activate virtual environment
|
13 |
+
source .venv/bin/activate
|
14 |
+
|
15 |
+
# Update pip
|
16 |
+
python -m pip install -U pip
|
17 |
+
|
18 |
+
# Install huggingface-cli
|
19 |
+
pip install -U "huggingface_hub[cli]"
|
20 |
+
|
21 |
+
# Install requirements
|
22 |
+
# pip install -U -r pre-requirements.txt
|
23 |
+
pip install -U -r requirements.txt
|
24 |
+
|
25 |
+
fi
|
26 |
|
27 |
# Check if .venv is active, if not activate it
|
28 |
if [[ -z $VIRTUAL_ENV ]]; then
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio
|
2 |
+
git+https://github.com/m-bain/whisperx.git
|