mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
fix: remove unused settings and utils files (#522)
* fix: remove unused settings and utils files * fix: remove migration done * fix: remove outdated scripts * fix: removing deployment of hermes, not used anymore * fix: partially remove secret, still have to understand frontend.
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Directory to search for Python files
|
||||
cwd=$(pwd)
|
||||
last_component="${cwd##*/}"
|
||||
|
||||
if [ "$last_component" = "reflector" ]; then
|
||||
directory="./artefacts"
|
||||
elif [ "$last_component" = "scripts" ]; then
|
||||
directory="../artefacts"
|
||||
fi
|
||||
|
||||
# Pattern to match Python files (e.g., "*.py" for all .py files)
|
||||
transcript_file_pattern="transcript_*.txt"
|
||||
summary_file_pattern="summary_*.txt"
|
||||
pickle_file_pattern="*.pkl"
|
||||
html_file_pattern="*.html"
|
||||
png_file_pattern="wordcloud*.png"
|
||||
mp3_file_pattern="*.mp3"
|
||||
mp4_file_pattern="*.mp4"
|
||||
m4a_file_pattern="*.m4a"
|
||||
|
||||
find "$directory" -type f -name "$transcript_file_pattern" -delete
|
||||
find "$directory" -type f -name "$summary_file_pattern" -delete
|
||||
find "$directory" -type f -name "$pickle_file_pattern" -delete
|
||||
find "$directory" -type f -name "$html_file_pattern" -delete
|
||||
find "$directory" -type f -name "$png_file_pattern" -delete
|
||||
find "$directory" -type f -name "$mp3_file_pattern" -delete
|
||||
find "$directory" -type f -name "$mp4_file_pattern" -delete
|
||||
find "$directory" -type f -name "$m4a_file_pattern" -delete
|
||||
@@ -1,39 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Upgrade pip
|
||||
pip install --upgrade pip
|
||||
|
||||
# Default to CPU Installation of JAX
|
||||
jax_mode="jax[cpu]"
|
||||
|
||||
# Install JAX
|
||||
if [ "$1" == "cpu" ]
|
||||
then
|
||||
jax_mode="jax[cpu]"
|
||||
elif [ "$1" == "cuda11" ]
|
||||
then
|
||||
jax_mode="jax[cuda11_pip]"
|
||||
elif [ "$1" == "cuda12" ]
|
||||
then
|
||||
jax_mode="jax[cuda12_pip]"
|
||||
fi
|
||||
|
||||
pip install --upgrade "$jax_mode"
|
||||
|
||||
# Install Whisper-JAX base
|
||||
pip install git+https://github.com/sanchit-gandhi/whisper-jax.git
|
||||
|
||||
# Update to latest version
|
||||
pip install --upgrade --no-deps --force-reinstall git+https://github.com/sanchit-gandhi/whisper-jax.git
|
||||
|
||||
cwd=$(pwd)
|
||||
last_component="${cwd##*/}"
|
||||
if [ "$last_component" = "reflector" ]; then
|
||||
pip install -r pipeline-requirements.txt
|
||||
elif [ "$last_component" = "scripts" ]; then
|
||||
pip install -r ../pipeline-requirements.txt
|
||||
fi
|
||||
|
||||
# download spacy models
|
||||
spacy download en_core_web_sm
|
||||
spacy download en_core_web_md
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
pip install --upgrade pip
|
||||
|
||||
cwd=$(pwd)
|
||||
last_component="${cwd##*/}"
|
||||
if [ "$last_component" = "reflector" ]; then
|
||||
pip install -r server-requirements.txt
|
||||
elif [ "$last_component" = "scripts" ]; then
|
||||
pip install -r ../server-requirements.txt
|
||||
fi
|
||||
Reference in New Issue
Block a user