Spaces:
Sleeping
Sleeping
import git | |
import os | |
import subprocess | |
import streamlit as st | |
def init(): | |
if not os.path.exists("zinglevoice"): | |
token = os.environ.get('TOKEN') | |
try: | |
git.Repo.clone_from("https://"+token+"@github.com/zinglebytes/zinglevoice.git", "zinglevoice") | |
subprocess.run("mv zinglevoice/* .",capture_output=True, text=True, shell=True) | |
except Exception as e: | |
print(e) | |
subprocess.run("rm -rf zinglevoice/*",capture_output=True, text=True, shell=True) | |
subprocess.run("mv zinglevoice/* .",capture_output=True, text=True, shell=True) | |
init() | |
import driver_code | |
driver_code.main() |