CoolFace
Apppublic

RandomCatLover/sequence_alignments_demo

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
app.py22 linesDownload Raw Back to root
1import os2 3if os.path.exists('.env'):4    from dotenv import load_dotenv5    print("Loading environment variables from .env file")6    load_dotenv()7    8destination = 'hidden_gems'9    10if not os.path.exists(destination):11    import subprocess12    repo_url = os.getenv("GIT_CORE")13    command = f'git clone {repo_url} {destination}'14    try:15        subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)16        print('Repository cloned successfully.')17    except subprocess.CalledProcessError as e:18        print(f'Error cloning repository')19 20from hidden_gems.app import demo21 22demo.launch()