image_to_2.5D / app.py
RandomCatLover's picture
Init
fc85bd0 verified
raw
history blame contribute delete
620 Bytes
import os
if os.path.exists('.env'):
from dotenv import load_dotenv
print("Loading environment variables from .env file")
load_dotenv()
destination = 'hidden_gems'
if not os.path.exists(destination):
import subprocess
repo_url = os.getenv("GIT_CORE")
command = f'git clone {repo_url} {destination}'
try:
subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)
print('Repository cloned successfully.')
except subprocess.CalledProcessError as e:
print(f'Error cloning repository')
from hidden_gems.app import demo
demo.launch()