RandomCatLover
commited on
Commit
•
a5cb5a7
1
Parent(s):
9fdd4c4
init
Browse files- app.py +22 -0
- requirements.txt +4 -0
- substitution_matrices/blosum62.pkl +3 -0
- substitution_matrices/identity.pkl +3 -0
- substitution_matrices/pam250.pkl +3 -0
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
if os.path.exists('.env'):
|
4 |
+
from dotenv import load_dotenv
|
5 |
+
print("Loading environment variables from .env file")
|
6 |
+
load_dotenv()
|
7 |
+
|
8 |
+
destination = 'hidden_gems'
|
9 |
+
|
10 |
+
if not os.path.exists(destination):
|
11 |
+
import subprocess
|
12 |
+
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 |
+
|
20 |
+
from hidden_gems.app import demo
|
21 |
+
|
22 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
gradio==4.14.0
|
2 |
+
matplotlib==3.8.2
|
3 |
+
numpy==1.26.3
|
4 |
+
seaborn==0.13.1
|
substitution_matrices/blosum62.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:041df7708bae5a31d0417e044f130dcc3488dbdc968a3eccb3d0de616ef50f10
|
3 |
+
size 4791
|
substitution_matrices/identity.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27ecc4757f1bf12325e5bfbb3218748afa219cfe6ddc13d8d0e5a16a693c6e5a
|
3 |
+
size 6263
|
substitution_matrices/pam250.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:95b9809ba0fcde561e43a29efba8bddd52f2c79350735629ad2376ecdfed48d9
|
3 |
+
size 4332
|