redradios commited on
Commit
d789a08
·
verified ·
1 Parent(s): 2160932

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -1,7 +1,11 @@
1
- import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- demo.launch()
 
 
 
 
1
+ import subprocess
2
 
3
+ def install_package():
4
+ subprocess.run(["pip", "uninstall", "-y", "Spanish-F5"], check=True)
5
+ subprocess.run(["pip", "install", "--upgrade", "git+https://github.com/jpgallegoar/Spanish-F5", "--no-cache-dir"], check=True)
6
 
7
+ # Install the package on startup
8
+ install_package()
9
+
10
+ # Start the Gradio app
11
+ subprocess.run(["f5-tts_infer-gradio"])