Spaces:
Sleeping
Sleeping
File size: 684 Bytes
7fa5a65 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import git
import os
import subprocess
import streamlit as st
@st.cache_resource
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() |