|
|
import os |
|
|
import subprocess |
|
|
import gradio as gr |
|
|
|
|
|
|
|
|
subprocess.run(["apt-get", "update"]) |
|
|
subprocess.run(["apt-get", "install", "-y", "git-lfs"]) |
|
|
|
|
|
|
|
|
subprocess.run(["git", "lfs", "install"]) |
|
|
|
|
|
|
|
|
repo_url = "https://huggingface.co/spaces/Gyufyjk/Voice-Clone" |
|
|
subprocess.run(["git", "clone", repo_url]) |
|
|
|
|
|
|
|
|
os.chdir("Voice-Clone") |
|
|
|
|
|
|
|
|
subprocess.run(["pip", "install", "-r", "requirements.txt"]) |
|
|
|
|
|
|
|
|
def main_function(inputs): |
|
|
|
|
|
return "Resultados aqui" |
|
|
|
|
|
|
|
|
iface = gr.Interface( |
|
|
fn=main_function, |
|
|
inputs="text", |
|
|
outputs="text" |
|
|
) |
|
|
|
|
|
iface.launch() |
|
|
|