RandomCatLover
commited on
Commit
•
9ad71c5
1
Parent(s):
6870b21
Init
Browse files- app.py +35 -0
- demos/Actinic keratoses.jpg +0 -0
- demos/Basal cell carcinoma.jpg +0 -0
- demos/Benign keratosis-like lesions .jpg +0 -0
- demos/Dermatofibroma.jpg +0 -0
- demos/Melanocytic nevi.jpg +0 -0
- demos/Melanoma.jpg +0 -0
- demos/Vascular lesions.jpg +0 -0
- requirements.txt +126 -0
app.py
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
destination = 'core'
|
4 |
+
|
5 |
+
if os.path.exists('.env'):
|
6 |
+
from dotenv import load_dotenv
|
7 |
+
load_dotenv()
|
8 |
+
|
9 |
+
if not os.path.exists(destination):
|
10 |
+
import subprocess
|
11 |
+
repo_url = os.getenv("GIT_CORE")
|
12 |
+
command = f'git clone {repo_url} {destination}'
|
13 |
+
try:
|
14 |
+
subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)
|
15 |
+
print('Repository cloned successfully.')
|
16 |
+
except subprocess.CalledProcessError as e:
|
17 |
+
print(f'Error cloning repository: {e.output.decode()}')
|
18 |
+
|
19 |
+
|
20 |
+
img_qua_path = 'img_qua'
|
21 |
+
if not os.path.exists(img_qua_path):
|
22 |
+
import subprocess
|
23 |
+
repo_url = 'https://github.com/idealo/image-quality-assessment.git'
|
24 |
+
command = f'git clone {repo_url} {img_qua_path}'
|
25 |
+
try:
|
26 |
+
subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)
|
27 |
+
print('Repository cloned successfully.')
|
28 |
+
except subprocess.CalledProcessError as e:
|
29 |
+
print(f'Error cloning repository: {e.output.decode()}')
|
30 |
+
|
31 |
+
from core.s import demo
|
32 |
+
|
33 |
+
demo.queue(concurrency_count=3)
|
34 |
+
#demo.launch(auth=("student", "whataday"))
|
35 |
+
demo.launch()
|
demos/Actinic keratoses.jpg
ADDED
demos/Basal cell carcinoma.jpg
ADDED
demos/Benign keratosis-like lesions .jpg
ADDED
demos/Dermatofibroma.jpg
ADDED
demos/Melanocytic nevi.jpg
ADDED
demos/Melanoma.jpg
ADDED
demos/Vascular lesions.jpg
ADDED
requirements.txt
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
absl-py==1.4.0
|
2 |
+
aiofiles==23.1.0
|
3 |
+
aiohttp==3.8.4
|
4 |
+
aiosignal==1.3.1
|
5 |
+
altair==5.0.0
|
6 |
+
anyio==3.6.2
|
7 |
+
asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1670263926556/work
|
8 |
+
astunparse==1.6.3
|
9 |
+
async-timeout==4.0.2
|
10 |
+
attrs==23.1.0
|
11 |
+
backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work
|
12 |
+
backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1618230623929/work
|
13 |
+
cachetools==5.3.0
|
14 |
+
certifi==2023.5.7
|
15 |
+
charset-normalizer==3.1.0
|
16 |
+
click==8.1.3
|
17 |
+
contourpy==1.0.7
|
18 |
+
cycler==0.11.0
|
19 |
+
debugpy @ file:///tmp/build/80754af9/debugpy_1637091796427/work
|
20 |
+
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work
|
21 |
+
entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1643888246732/work
|
22 |
+
executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1667317341051/work
|
23 |
+
fastapi==0.95.2
|
24 |
+
ffmpy==0.3.0
|
25 |
+
filelock==3.12.0
|
26 |
+
flatbuffers==23.5.9
|
27 |
+
fonttools==4.39.4
|
28 |
+
frozenlist==1.3.3
|
29 |
+
fsspec==2023.5.0
|
30 |
+
gast==0.4.0
|
31 |
+
google-auth==2.18.1
|
32 |
+
google-auth-oauthlib==1.0.0
|
33 |
+
google-pasta==0.2.0
|
34 |
+
gradio==3.31.0
|
35 |
+
gradio_client==0.2.5
|
36 |
+
grpcio==1.54.2
|
37 |
+
h11==0.14.0
|
38 |
+
h5py==3.8.0
|
39 |
+
httpcore==0.17.1
|
40 |
+
httpx==0.24.1
|
41 |
+
huggingface-hub==0.14.1
|
42 |
+
idna==3.4
|
43 |
+
importlib-metadata==6.6.0
|
44 |
+
importlib-resources==5.12.0
|
45 |
+
ipykernel @ file:///home/conda/feedstock_root/build_artifacts/ipykernel_1655369107642/work
|
46 |
+
ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1653754926575/work
|
47 |
+
jax==0.4.10
|
48 |
+
jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1669134318875/work
|
49 |
+
Jinja2==3.1.2
|
50 |
+
jsonschema==4.17.3
|
51 |
+
jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1633454794268/work
|
52 |
+
jupyter_core @ file:///home/conda/feedstock_root/build_artifacts/jupyter_core_1678994158927/work
|
53 |
+
keras==2.12.0
|
54 |
+
kiwisolver==1.4.4
|
55 |
+
libclang==16.0.0
|
56 |
+
linkify-it-py==2.0.2
|
57 |
+
Markdown==3.4.3
|
58 |
+
markdown-it-py==2.2.0
|
59 |
+
MarkupSafe==2.1.2
|
60 |
+
matplotlib==3.7.1
|
61 |
+
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1660814786464/work
|
62 |
+
mdit-py-plugins==0.3.3
|
63 |
+
mdurl==0.1.2
|
64 |
+
ml-dtypes==0.1.0
|
65 |
+
multidict==6.0.4
|
66 |
+
nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1664684991461/work
|
67 |
+
numpy==1.23.5
|
68 |
+
oauthlib==3.2.2
|
69 |
+
opencv-python==4.7.0.72
|
70 |
+
opt-einsum==3.3.0
|
71 |
+
orjson==3.8.12
|
72 |
+
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1681337016113/work
|
73 |
+
pandas==2.0.1
|
74 |
+
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work
|
75 |
+
pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1667297516076/work
|
76 |
+
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
|
77 |
+
Pillow==9.5.0
|
78 |
+
pkgutil_resolve_name==1.3.10
|
79 |
+
platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1683850015520/work
|
80 |
+
prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1677600924538/work
|
81 |
+
protobuf==4.23.1
|
82 |
+
psutil @ file:///opt/conda/conda-bld/psutil_1656431268089/work
|
83 |
+
ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
|
84 |
+
pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work
|
85 |
+
pyasn1==0.5.0
|
86 |
+
pyasn1-modules==0.3.0
|
87 |
+
pydantic==1.10.7
|
88 |
+
pydub==0.25.1
|
89 |
+
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1681904169130/work
|
90 |
+
pyparsing==3.0.9
|
91 |
+
pyrsistent==0.19.3
|
92 |
+
python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work
|
93 |
+
python-multipart==0.0.6
|
94 |
+
pytz==2023.3
|
95 |
+
PyYAML==6.0
|
96 |
+
pyzmq==19.0.2
|
97 |
+
requests==2.30.0
|
98 |
+
requests-oauthlib==1.3.1
|
99 |
+
rsa==4.9
|
100 |
+
scipy==1.10.1
|
101 |
+
semantic-version==2.10.0
|
102 |
+
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
|
103 |
+
sniffio==1.3.0
|
104 |
+
stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1669632077133/work
|
105 |
+
starlette==0.27.0
|
106 |
+
tensorboard==2.12.3
|
107 |
+
tensorboard-data-server==0.7.0
|
108 |
+
tensorflow==2.12.0
|
109 |
+
tensorflow-estimator==2.12.0
|
110 |
+
tensorflow-io-gcs-filesystem==0.32.0
|
111 |
+
termcolor==2.3.0
|
112 |
+
toolz==0.12.0
|
113 |
+
tornado @ file:///home/conda/feedstock_root/build_artifacts/tornado_1648827257044/work
|
114 |
+
tqdm==4.65.0
|
115 |
+
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1675110562325/work
|
116 |
+
typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1678559861143/work
|
117 |
+
tzdata==2023.3
|
118 |
+
uc-micro-py==1.0.2
|
119 |
+
urllib3==1.26.15
|
120 |
+
uvicorn==0.22.0
|
121 |
+
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1673864653149/work
|
122 |
+
websockets==11.0.3
|
123 |
+
Werkzeug==2.3.4
|
124 |
+
wrapt==1.14.1
|
125 |
+
yarl==1.9.2
|
126 |
+
zipp==3.15.0
|