Spaces:
Sleeping
Sleeping
Ihor Neporozhnii commited on
Commit ·
459aa21
1
Parent(s): f4c64a4
Deploy with cached graph_generator, predictor, plotter
Browse files
app.py
CHANGED
|
@@ -9,9 +9,10 @@ def load_repo():
|
|
| 9 |
if os.path.exists(os.path.dirname(os.path.abspath(__file__))+"/prodosmate/prodosmate_app_repo"):
|
| 10 |
shutil.rmtree(os.path.dirname(os.path.abspath(__file__))+"/prodosmate/prodosmate_app_repo")
|
| 11 |
|
| 12 |
-
print("
|
| 13 |
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")
|
| 14 |
-
|
|
|
|
| 15 |
load_repo()
|
| 16 |
from prodosmate.prodosmate_app_repo.main import run_application
|
| 17 |
run_application()
|
|
|
|
| 9 |
if os.path.exists(os.path.dirname(os.path.abspath(__file__))+"/prodosmate/prodosmate_app_repo"):
|
| 10 |
shutil.rmtree(os.path.dirname(os.path.abspath(__file__))+"/prodosmate/prodosmate_app_repo")
|
| 11 |
|
| 12 |
+
print("Cloning...")
|
| 13 |
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")
|
| 14 |
+
print("Finished cloning")
|
| 15 |
+
|
| 16 |
load_repo()
|
| 17 |
from prodosmate.prodosmate_app_repo.main import run_application
|
| 18 |
run_application()
|