Googlefan commited on
Commit
cb01558
·
1 Parent(s): b7a18db

refactor(app.py): add Rust and Python package installation commands

Browse files
Files changed (3) hide show
  1. app.py +7 -0
  2. packages.txt +0 -1
  3. requirements.txt +0 -2
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  import gradio as gr
2
  from huggingface_hub import hf_hub_download
3
  from sbv2_bindings import TTSModel
 
1
+ import os
2
+
3
+ os.system("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh")
4
+ os.system(
5
+ "pip install -U git+https://github.com/tuna2134/sbv2-api#egg=sbv2_bindings&subdirectory=sbv2_bindings"
6
+ )
7
+
8
  import gradio as gr
9
  from huggingface_hub import hf_hub_download
10
  from sbv2_bindings import TTSModel
packages.txt DELETED
@@ -1 +0,0 @@
1
- rustup
 
 
requirements.txt DELETED
@@ -1,2 +0,0 @@
1
- git+https://github.com/tuna2134/sbv2-api#egg=sbv2_bindings&subdirectory=sbv2_bindings
2
- gradio