Akash Chavda commited on
Commit
1050dd5
·
1 Parent(s): 5d147ec

feat: added rvc files

Browse files
Files changed (1) hide show
  1. app.py +19 -4
app.py CHANGED
@@ -1,7 +1,22 @@
 
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
  import gradio as gr
3
+ import subprocess
4
 
5
+ def install_dependencies():
6
+ if not os.path.exists("project"):
7
+ subprocess.run(["git", "clone", "https://github.com/luisesantillan/project"])
8
+ subprocess.run(["pip", "install", "-r", "project/requirements.txt"])
9
+ subprocess.run(["python", "project/download_files.py"])
10
 
11
+ def start_tensorboard():
12
+ if tensorboard:
13
+ subprocess.Popen(["tensorboard", "--logdir", "./project/logs"])
14
+
15
+ def run_app():
16
+ subprocess.run(["python", "project/app.py", "--colab"])
17
+
18
+ if __name__ == "__main__":
19
+ tensorboard = True # Set this to True or False based on your requirement
20
+ install_dependencies()
21
+ start_tensorboard()
22
+ run_app()