Spaces:
Runtime error
Runtime error
Ivan Felipe Rodriguez commited on
Commit ·
3161a87
1
Parent(s): a0fd402
updating inference
Browse files
=4.2.1
DELETED
|
@@ -1,72 +0,0 @@
|
|
| 1 |
-
Requirement already satisfied: gradio in ./shark_venv3.0/lib/python3.9/site-packages (4.31.5)
|
| 2 |
-
Requirement already satisfied: aiofiles<24.0,>=22.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (23.1.0)
|
| 3 |
-
Requirement already satisfied: pandas<3.0,>=1.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.0.0)
|
| 4 |
-
Requirement already satisfied: pyyaml<7.0,>=5.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (6.0)
|
| 5 |
-
Requirement already satisfied: ffmpy in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.3.0)
|
| 6 |
-
Requirement already satisfied: python-multipart>=0.0.9 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.0.9)
|
| 7 |
-
Requirement already satisfied: tomlkit==0.12.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.12.0)
|
| 8 |
-
Requirement already satisfied: fastapi in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.111.0)
|
| 9 |
-
Requirement already satisfied: gradio-client==0.16.4 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.16.4)
|
| 10 |
-
Requirement already satisfied: ruff>=0.2.2 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.4.5)
|
| 11 |
-
Requirement already satisfied: pydantic>=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.7.1)
|
| 12 |
-
Requirement already satisfied: markupsafe~=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.1.2)
|
| 13 |
-
Requirement already satisfied: pillow<11.0,>=8.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (9.5.0)
|
| 14 |
-
Requirement already satisfied: jinja2<4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (3.1.2)
|
| 15 |
-
Requirement already satisfied: packaging in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (23.1)
|
| 16 |
-
Requirement already satisfied: pydub in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.25.1)
|
| 17 |
-
Requirement already satisfied: huggingface-hub>=0.19.3 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.23.2)
|
| 18 |
-
Requirement already satisfied: typer<1.0,>=0.12 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.12.3)
|
| 19 |
-
Requirement already satisfied: httpx>=0.24.1 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.27.0)
|
| 20 |
-
Requirement already satisfied: importlib-resources<7.0,>=1.3 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (5.12.0)
|
| 21 |
-
Requirement already satisfied: altair<6.0,>=4.2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (4.2.2)
|
| 22 |
-
Requirement already satisfied: typing-extensions~=4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (4.12.0)
|
| 23 |
-
Requirement already satisfied: matplotlib~=3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (3.7.1)
|
| 24 |
-
Requirement already satisfied: uvicorn>=0.14.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.21.1)
|
| 25 |
-
Requirement already satisfied: urllib3~=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.2.1)
|
| 26 |
-
Requirement already satisfied: numpy~=1.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (1.24.3)
|
| 27 |
-
Requirement already satisfied: orjson~=3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (3.8.10)
|
| 28 |
-
Requirement already satisfied: semantic-version~=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.10.0)
|
| 29 |
-
Requirement already satisfied: fsspec in ./shark_venv3.0/lib/python3.9/site-packages (from gradio-client==0.16.4->gradio) (2024.5.0)
|
| 30 |
-
Requirement already satisfied: websockets<12.0,>=10.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio-client==0.16.4->gradio) (11.0.2)
|
| 31 |
-
Requirement already satisfied: entrypoints in ./shark_venv3.0/lib/python3.9/site-packages (from altair<6.0,>=4.2.0->gradio) (0.4)
|
| 32 |
-
Requirement already satisfied: toolz in ./shark_venv3.0/lib/python3.9/site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.0)
|
| 33 |
-
Requirement already satisfied: jsonschema>=3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from altair<6.0,>=4.2.0->gradio) (4.17.3)
|
| 34 |
-
Requirement already satisfied: httpcore==1.* in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (1.0.5)
|
| 35 |
-
Requirement already satisfied: anyio in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (3.6.2)
|
| 36 |
-
Requirement already satisfied: idna in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (3.4)
|
| 37 |
-
Requirement already satisfied: certifi in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (2022.12.7)
|
| 38 |
-
Requirement already satisfied: sniffio in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (1.3.0)
|
| 39 |
-
Requirement already satisfied: h11<0.15,>=0.13 in ./shark_venv3.0/lib/python3.9/site-packages (from httpcore==1.*->httpx>=0.24.1->gradio) (0.14.0)
|
| 40 |
-
Requirement already satisfied: filelock in ./shark_venv3.0/lib/python3.9/site-packages (from huggingface-hub>=0.19.3->gradio) (3.12.0)
|
| 41 |
-
Requirement already satisfied: requests in ./shark_venv3.0/lib/python3.9/site-packages (from huggingface-hub>=0.19.3->gradio) (2.32.2)
|
| 42 |
-
Requirement already satisfied: tqdm>=4.42.1 in ./shark_venv3.0/lib/python3.9/site-packages (from huggingface-hub>=0.19.3->gradio) (4.65.0)
|
| 43 |
-
Requirement already satisfied: zipp>=3.1.0 in ./shark_venv3.0/lib/python3.9/site-packages (from importlib-resources<7.0,>=1.3->gradio) (3.15.0)
|
| 44 |
-
Requirement already satisfied: attrs>=17.4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (23.1.0)
|
| 45 |
-
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./shark_venv3.0/lib/python3.9/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.19.3)
|
| 46 |
-
Requirement already satisfied: python-dateutil>=2.7 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (2.8.2)
|
| 47 |
-
Requirement already satisfied: fonttools>=4.22.0 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (4.39.3)
|
| 48 |
-
Requirement already satisfied: pyparsing>=2.3.1 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (3.0.9)
|
| 49 |
-
Requirement already satisfied: kiwisolver>=1.0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (1.4.4)
|
| 50 |
-
Requirement already satisfied: cycler>=0.10 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (0.11.0)
|
| 51 |
-
Requirement already satisfied: contourpy>=1.0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (1.0.7)
|
| 52 |
-
Requirement already satisfied: tzdata>=2022.1 in ./shark_venv3.0/lib/python3.9/site-packages (from pandas<3.0,>=1.0->gradio) (2023.3)
|
| 53 |
-
Requirement already satisfied: pytz>=2020.1 in ./shark_venv3.0/lib/python3.9/site-packages (from pandas<3.0,>=1.0->gradio) (2023.3)
|
| 54 |
-
Requirement already satisfied: annotated-types>=0.4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from pydantic>=2.0->gradio) (0.7.0)
|
| 55 |
-
Requirement already satisfied: pydantic-core==2.18.2 in ./shark_venv3.0/lib/python3.9/site-packages (from pydantic>=2.0->gradio) (2.18.2)
|
| 56 |
-
Requirement already satisfied: six>=1.5 in ./shark_venv3.0/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)
|
| 57 |
-
Requirement already satisfied: click>=8.0.0 in ./shark_venv3.0/lib/python3.9/site-packages (from typer<1.0,>=0.12->gradio) (8.1.3)
|
| 58 |
-
Requirement already satisfied: rich>=10.11.0 in ./shark_venv3.0/lib/python3.9/site-packages (from typer<1.0,>=0.12->gradio) (13.3.4)
|
| 59 |
-
Requirement already satisfied: shellingham>=1.3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from typer<1.0,>=0.12->gradio) (1.5.4)
|
| 60 |
-
Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.2.0)
|
| 61 |
-
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./shark_venv3.0/lib/python3.9/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.15.1)
|
| 62 |
-
Requirement already satisfied: mdurl~=0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)
|
| 63 |
-
Requirement already satisfied: email_validator>=2.0.0 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (2.1.1)
|
| 64 |
-
Requirement already satisfied: fastapi-cli>=0.0.2 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (0.0.4)
|
| 65 |
-
Requirement already satisfied: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (5.10.0)
|
| 66 |
-
Requirement already satisfied: starlette<0.38.0,>=0.37.2 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (0.37.2)
|
| 67 |
-
Requirement already satisfied: dnspython>=2.0.0 in ./shark_venv3.0/lib/python3.9/site-packages (from email_validator>=2.0.0->fastapi->gradio) (2.6.1)
|
| 68 |
-
Requirement already satisfied: python-dotenv>=0.13 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (1.0.0)
|
| 69 |
-
Requirement already satisfied: httptools>=0.5.0 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (0.6.1)
|
| 70 |
-
Requirement already satisfied: watchfiles>=0.13 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (0.22.0)
|
| 71 |
-
Requirement already satisfied: uvloop!=0.15.0,!=0.15.1,>=0.14.0 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (0.19.0)
|
| 72 |
-
Requirement already satisfied: charset-normalizer<4,>=2 in ./shark_venv3.0/lib/python3.9/site-packages (from requests->huggingface-hub>=0.19.3->gradio) (3.1.0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=4.2.2
DELETED
|
@@ -1,72 +0,0 @@
|
|
| 1 |
-
Requirement already satisfied: gradio in ./shark_venv3.0/lib/python3.9/site-packages (4.31.5)
|
| 2 |
-
Requirement already satisfied: matplotlib~=3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (3.7.1)
|
| 3 |
-
Requirement already satisfied: numpy~=1.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (1.24.3)
|
| 4 |
-
Requirement already satisfied: uvicorn>=0.14.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.21.1)
|
| 5 |
-
Requirement already satisfied: altair<6.0,>=4.2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (4.2.2)
|
| 6 |
-
Requirement already satisfied: python-multipart>=0.0.9 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.0.9)
|
| 7 |
-
Requirement already satisfied: urllib3~=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.2.1)
|
| 8 |
-
Requirement already satisfied: pandas<3.0,>=1.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.0.0)
|
| 9 |
-
Requirement already satisfied: aiofiles<24.0,>=22.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (23.1.0)
|
| 10 |
-
Requirement already satisfied: fastapi in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.111.0)
|
| 11 |
-
Requirement already satisfied: semantic-version~=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.10.0)
|
| 12 |
-
Requirement already satisfied: typing-extensions~=4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (4.12.0)
|
| 13 |
-
Requirement already satisfied: pydub in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.25.1)
|
| 14 |
-
Requirement already satisfied: gradio-client==0.16.4 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.16.4)
|
| 15 |
-
Requirement already satisfied: pyyaml<7.0,>=5.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (6.0)
|
| 16 |
-
Requirement already satisfied: pillow<11.0,>=8.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (9.5.0)
|
| 17 |
-
Requirement already satisfied: ruff>=0.2.2 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.4.5)
|
| 18 |
-
Requirement already satisfied: typer<1.0,>=0.12 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.12.3)
|
| 19 |
-
Requirement already satisfied: tomlkit==0.12.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.12.0)
|
| 20 |
-
Requirement already satisfied: ffmpy in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.3.0)
|
| 21 |
-
Requirement already satisfied: importlib-resources<7.0,>=1.3 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (5.12.0)
|
| 22 |
-
Requirement already satisfied: markupsafe~=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.1.2)
|
| 23 |
-
Requirement already satisfied: jinja2<4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (3.1.2)
|
| 24 |
-
Requirement already satisfied: httpx>=0.24.1 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.27.0)
|
| 25 |
-
Requirement already satisfied: pydantic>=2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (2.7.1)
|
| 26 |
-
Requirement already satisfied: huggingface-hub>=0.19.3 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (0.23.2)
|
| 27 |
-
Requirement already satisfied: orjson~=3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (3.8.10)
|
| 28 |
-
Requirement already satisfied: packaging in ./shark_venv3.0/lib/python3.9/site-packages (from gradio) (23.1)
|
| 29 |
-
Requirement already satisfied: websockets<12.0,>=10.0 in ./shark_venv3.0/lib/python3.9/site-packages (from gradio-client==0.16.4->gradio) (11.0.2)
|
| 30 |
-
Requirement already satisfied: fsspec in ./shark_venv3.0/lib/python3.9/site-packages (from gradio-client==0.16.4->gradio) (2024.5.0)
|
| 31 |
-
Requirement already satisfied: jsonschema>=3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from altair<6.0,>=4.2.0->gradio) (4.17.3)
|
| 32 |
-
Requirement already satisfied: toolz in ./shark_venv3.0/lib/python3.9/site-packages (from altair<6.0,>=4.2.0->gradio) (0.12.0)
|
| 33 |
-
Requirement already satisfied: entrypoints in ./shark_venv3.0/lib/python3.9/site-packages (from altair<6.0,>=4.2.0->gradio) (0.4)
|
| 34 |
-
Requirement already satisfied: certifi in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (2022.12.7)
|
| 35 |
-
Requirement already satisfied: idna in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (3.4)
|
| 36 |
-
Requirement already satisfied: sniffio in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (1.3.0)
|
| 37 |
-
Requirement already satisfied: httpcore==1.* in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (1.0.5)
|
| 38 |
-
Requirement already satisfied: anyio in ./shark_venv3.0/lib/python3.9/site-packages (from httpx>=0.24.1->gradio) (3.6.2)
|
| 39 |
-
Requirement already satisfied: h11<0.15,>=0.13 in ./shark_venv3.0/lib/python3.9/site-packages (from httpcore==1.*->httpx>=0.24.1->gradio) (0.14.0)
|
| 40 |
-
Requirement already satisfied: filelock in ./shark_venv3.0/lib/python3.9/site-packages (from huggingface-hub>=0.19.3->gradio) (3.12.0)
|
| 41 |
-
Requirement already satisfied: tqdm>=4.42.1 in ./shark_venv3.0/lib/python3.9/site-packages (from huggingface-hub>=0.19.3->gradio) (4.65.0)
|
| 42 |
-
Requirement already satisfied: requests in ./shark_venv3.0/lib/python3.9/site-packages (from huggingface-hub>=0.19.3->gradio) (2.32.2)
|
| 43 |
-
Requirement already satisfied: zipp>=3.1.0 in ./shark_venv3.0/lib/python3.9/site-packages (from importlib-resources<7.0,>=1.3->gradio) (3.15.0)
|
| 44 |
-
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./shark_venv3.0/lib/python3.9/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (0.19.3)
|
| 45 |
-
Requirement already satisfied: attrs>=17.4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio) (23.1.0)
|
| 46 |
-
Requirement already satisfied: cycler>=0.10 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (0.11.0)
|
| 47 |
-
Requirement already satisfied: fonttools>=4.22.0 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (4.39.3)
|
| 48 |
-
Requirement already satisfied: kiwisolver>=1.0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (1.4.4)
|
| 49 |
-
Requirement already satisfied: python-dateutil>=2.7 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (2.8.2)
|
| 50 |
-
Requirement already satisfied: contourpy>=1.0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (1.0.7)
|
| 51 |
-
Requirement already satisfied: pyparsing>=2.3.1 in ./shark_venv3.0/lib/python3.9/site-packages (from matplotlib~=3.0->gradio) (3.0.9)
|
| 52 |
-
Requirement already satisfied: pytz>=2020.1 in ./shark_venv3.0/lib/python3.9/site-packages (from pandas<3.0,>=1.0->gradio) (2023.3)
|
| 53 |
-
Requirement already satisfied: tzdata>=2022.1 in ./shark_venv3.0/lib/python3.9/site-packages (from pandas<3.0,>=1.0->gradio) (2023.3)
|
| 54 |
-
Requirement already satisfied: annotated-types>=0.4.0 in ./shark_venv3.0/lib/python3.9/site-packages (from pydantic>=2.0->gradio) (0.7.0)
|
| 55 |
-
Requirement already satisfied: pydantic-core==2.18.2 in ./shark_venv3.0/lib/python3.9/site-packages (from pydantic>=2.0->gradio) (2.18.2)
|
| 56 |
-
Requirement already satisfied: six>=1.5 in ./shark_venv3.0/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio) (1.16.0)
|
| 57 |
-
Requirement already satisfied: rich>=10.11.0 in ./shark_venv3.0/lib/python3.9/site-packages (from typer<1.0,>=0.12->gradio) (13.3.4)
|
| 58 |
-
Requirement already satisfied: click>=8.0.0 in ./shark_venv3.0/lib/python3.9/site-packages (from typer<1.0,>=0.12->gradio) (8.1.3)
|
| 59 |
-
Requirement already satisfied: shellingham>=1.3.0 in ./shark_venv3.0/lib/python3.9/site-packages (from typer<1.0,>=0.12->gradio) (1.5.4)
|
| 60 |
-
Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in ./shark_venv3.0/lib/python3.9/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.2.0)
|
| 61 |
-
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./shark_venv3.0/lib/python3.9/site-packages (from rich>=10.11.0->typer<1.0,>=0.12->gradio) (2.15.1)
|
| 62 |
-
Requirement already satisfied: mdurl~=0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich>=10.11.0->typer<1.0,>=0.12->gradio) (0.1.2)
|
| 63 |
-
Requirement already satisfied: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (5.10.0)
|
| 64 |
-
Requirement already satisfied: fastapi-cli>=0.0.2 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (0.0.4)
|
| 65 |
-
Requirement already satisfied: email_validator>=2.0.0 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (2.1.1)
|
| 66 |
-
Requirement already satisfied: starlette<0.38.0,>=0.37.2 in ./shark_venv3.0/lib/python3.9/site-packages (from fastapi->gradio) (0.37.2)
|
| 67 |
-
Requirement already satisfied: dnspython>=2.0.0 in ./shark_venv3.0/lib/python3.9/site-packages (from email_validator>=2.0.0->fastapi->gradio) (2.6.1)
|
| 68 |
-
Requirement already satisfied: httptools>=0.5.0 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (0.6.1)
|
| 69 |
-
Requirement already satisfied: watchfiles>=0.13 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (0.22.0)
|
| 70 |
-
Requirement already satisfied: python-dotenv>=0.13 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (1.0.0)
|
| 71 |
-
Requirement already satisfied: uvloop!=0.15.0,!=0.15.1,>=0.14.0 in ./shark_venv3.0/lib/python3.9/site-packages (from uvicorn>=0.14.0->gradio) (0.19.0)
|
| 72 |
-
Requirement already satisfied: charset-normalizer<4,>=2 in ./shark_venv3.0/lib/python3.9/site-packages (from requests->huggingface-hub>=0.19.3->gradio) (3.1.0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -146,7 +146,7 @@ def draw_cockpit(frame, top_pred,cnt):
|
|
| 146 |
danger_color = 'orangered' if top_pred['dangerous_dist_confirmed'] else 'yellowgreen'
|
| 147 |
|
| 148 |
# Create a list of strings to plot
|
| 149 |
-
strings = [shark_suspected, human_suspected, shark_size_estimate,
|
| 150 |
|
| 151 |
# shark_sighted = 'Shark Detected: ' + str(top_pred['shark_sighted'])
|
| 152 |
# human_sighted = 'Number of Humans: ' + str(top_pred['human_n'])
|
|
@@ -259,19 +259,19 @@ def process_video(input_video, out_fps = 'auto', skip_frames = 5):
|
|
| 259 |
#print(frame.shape)
|
| 260 |
#print(prediction_frame.shape)
|
| 261 |
#print(width, height)
|
| 262 |
-
yield frame
|
| 263 |
|
| 264 |
cnt += 1
|
| 265 |
iterating, frame = cap.read()
|
| 266 |
|
| 267 |
video.release()
|
| 268 |
-
yield None
|
| 269 |
|
| 270 |
with gr.Blocks(theme=theme) as demo:
|
| 271 |
gr.Markdown("Alpha Demo of the Sharkpatrol Oceanlife Detector.")
|
| 272 |
with gr.Row():
|
| 273 |
input_video = gr.File(label="Input",height=50)
|
| 274 |
-
output_video = gr.File(label="Output Video",height=50)
|
| 275 |
#.style(equal_height=True,height='25%'):
|
| 276 |
original_frames = gr.Image(label="Processed Frame") #.style( height=650)
|
| 277 |
#processed_frames = gr.Image(label="Shark Engine")
|
|
@@ -283,7 +283,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 283 |
process_video_btn = gr.Button("Process Video")
|
| 284 |
|
| 285 |
#process_video_btn.click(process_video, input_video, [processed_frames, original_frames, output_video, dashboard])
|
| 286 |
-
process_video_btn.click(process_video, input_video, [ original_frames
|
| 287 |
demo.queue()
|
| 288 |
if os.getenv('SYSTEM') == 'spaces':
|
| 289 |
demo.launch(width='40%',auth=(os.environ.get('SHARK_USERNAME'), os.environ.get('SHARK_PASSWORD')))
|
|
|
|
| 146 |
danger_color = 'orangered' if top_pred['dangerous_dist_confirmed'] else 'yellowgreen'
|
| 147 |
|
| 148 |
# Create a list of strings to plot
|
| 149 |
+
strings = [shark_suspected, human_suspected, shark_size_estimate, danger_level]
|
| 150 |
|
| 151 |
# shark_sighted = 'Shark Detected: ' + str(top_pred['shark_sighted'])
|
| 152 |
# human_sighted = 'Number of Humans: ' + str(top_pred['human_n'])
|
|
|
|
| 259 |
#print(frame.shape)
|
| 260 |
#print(prediction_frame.shape)
|
| 261 |
#print(width, height)
|
| 262 |
+
yield frame
|
| 263 |
|
| 264 |
cnt += 1
|
| 265 |
iterating, frame = cap.read()
|
| 266 |
|
| 267 |
video.release()
|
| 268 |
+
yield None
|
| 269 |
|
| 270 |
with gr.Blocks(theme=theme) as demo:
|
| 271 |
gr.Markdown("Alpha Demo of the Sharkpatrol Oceanlife Detector.")
|
| 272 |
with gr.Row():
|
| 273 |
input_video = gr.File(label="Input",height=50)
|
| 274 |
+
#output_video = gr.File(label="Output Video",height=50)
|
| 275 |
#.style(equal_height=True,height='25%'):
|
| 276 |
original_frames = gr.Image(label="Processed Frame") #.style( height=650)
|
| 277 |
#processed_frames = gr.Image(label="Shark Engine")
|
|
|
|
| 283 |
process_video_btn = gr.Button("Process Video")
|
| 284 |
|
| 285 |
#process_video_btn.click(process_video, input_video, [processed_frames, original_frames, output_video, dashboard])
|
| 286 |
+
process_video_btn.click(process_video, input_video, [ original_frames])
|
| 287 |
demo.queue()
|
| 288 |
if os.getenv('SYSTEM') == 'spaces':
|
| 289 |
demo.launch(width='40%',auth=(os.environ.get('SHARK_USERNAME'), os.environ.get('SHARK_PASSWORD')))
|
inference.py
CHANGED
|
@@ -44,7 +44,7 @@ classes = ['Beach',
|
|
| 44 |
'Sea cow',
|
| 45 |
'Stingray',
|
| 46 |
'Person',
|
| 47 |
-
'
|
| 48 |
'Surfer',
|
| 49 |
'Surfer',
|
| 50 |
'Fish',
|
|
|
|
| 44 |
'Sea cow',
|
| 45 |
'Stingray',
|
| 46 |
'Person',
|
| 47 |
+
'Surfer',
|
| 48 |
'Surfer',
|
| 49 |
'Surfer',
|
| 50 |
'Fish',
|