Spaces:
Sleeping
Sleeping
File size: 679 Bytes
6738ea9 5b73747 6bc2ed0 92a48d3 5b73747 f4c64a4 0b36466 6738ea9 459aa21 0b36466 459aa21 f4c64a4 aff01e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
import shutil
from git import Repo
import streamlit as st
st.set_page_config(layout="wide")
@st.cache_resource
def load_repo():
if os.path.exists(os.path.dirname(os.path.abspath(__file__))+"/prodosmate/prodosmate_app_repo"):
shutil.rmtree(os.path.dirname(os.path.abspath(__file__))+"/prodosmate/prodosmate_app_repo")
print("Cloning...")
Repo.clone_from(f"https://ineporozhnii:{os.environ['PDOS_FINGERPRINTS_APP_TOKEN']}@github.com/ineporozhnii/pdos_fingerprints_app_hugging_face.git", "prodosmate/prodosmate_app_repo")
print("Finished cloning")
load_repo()
from prodosmate.prodosmate_app_repo.main import run_application
run_application() |