Skip to content

Commit

Permalink
Merge pull request #898 from IAHispano/exp/gradio-v5
Browse files Browse the repository at this point in the history
move to gradio 5
  • Loading branch information
Vidalnt authored Dec 4, 2024
2 parents 66904a5 + 9f8b729 commit dbf1e9c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
3 changes: 0 additions & 3 deletions assets/themes/Applio.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ def __init__(
button_secondary_text_color_dark="white",
button_secondary_text_color_hover="*button_secondary_text_color",
button_secondary_text_color_hover_dark="*button_secondary_text_color",
button_shadow="none",
button_shadow_active="*shadow_inset",
button_shadow_hover="none",
button_small_padding="*spacing_sm calc(2 * *spacing_sm)",
button_small_radius="*radius_lg",
button_small_text_size="*text_md",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ transformers==4.44.2
# Visualization and UI
matplotlib==3.7.2
tensorboard
gradio==4.43.0
gradio==5.5.0

# Miscellaneous utilities
certifi>=2023.07.22; sys_platform == 'darwin'
Expand Down
4 changes: 2 additions & 2 deletions run-install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo.
set "INSTALL_DIR=%cd%"
set "MINICONDA_DIR=%UserProfile%\Miniconda3"
set "ENV_DIR=%INSTALL_DIR%\env"
set "MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py39_23.9.0-0-Windows-x86_64.exe"
set "MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-py310_24.7.1-0-Windows-x86_64.exe"
set "CONDA_EXE=%MINICONDA_DIR%\Scripts\conda.exe"

call :cleanup
Expand Down Expand Up @@ -49,7 +49,7 @@ exit /b 0

:create_conda_env
echo Creating Conda environment...
call "%MINICONDA_DIR%\_conda.exe" create --no-shortcuts -y -k --prefix "%ENV_DIR%" python=3.9
call "%MINICONDA_DIR%\_conda.exe" create --no-shortcuts -y -k --prefix "%ENV_DIR%" python=3.10
if errorlevel 1 goto :error
echo Conda environment created successfully.
echo.
Expand Down
7 changes: 4 additions & 3 deletions tabs/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,14 @@ def refresh_embedders_folders():

def get_speakers_id(model):
if model:
model_data = torch.load(model, map_location="cpu")
speakers_id = model_data.get("speakers_id", 0)
model_data = torch.load(os.path.join(now_dir,model), map_location="cpu")
speakers_id = model_data.get("speakers_id")
if speakers_id:
return list(range(speakers_id))
else:
return [0]

else:
return [0]

# Inference tab
def inference_tab():
Expand Down

0 comments on commit dbf1e9c

Please sign in to comment.