Hugo Rodrigues
commited on
Commit
·
1a2596e
1
Parent(s):
1e0bf45
my first Docker HF spaces
Browse files- .gitignore +22 -0
- Dockerfile +14 -0
- requirements.txt +3 -0
- setup.py +31 -0
.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Build Artifacts
|
2 |
+
build/
|
3 |
+
|
4 |
+
# Core Dumps
|
5 |
+
core
|
6 |
+
|
7 |
+
# Byte-Compiled Modules
|
8 |
+
__pycache__/
|
9 |
+
|
10 |
+
# Extension Modules
|
11 |
+
*.so
|
12 |
+
|
13 |
+
# Packaging Artifacts
|
14 |
+
*.egg-info
|
15 |
+
*.whl
|
16 |
+
|
17 |
+
# IDEs and Tools
|
18 |
+
.idea/
|
19 |
+
.gdb_history
|
20 |
+
.vscode/
|
21 |
+
# Other
|
22 |
+
.DS_Store
|
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
# you will also find guides on how best to write your Dockerfile
|
3 |
+
|
4 |
+
FROM python:3.9
|
5 |
+
|
6 |
+
WORKDIR /code
|
7 |
+
|
8 |
+
COPY ./requirements.txt /code/requirements.txt
|
9 |
+
|
10 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
+
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
pydantic
|
3 |
+
typing
|
setup.py
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (c) Meta Platforms, Inc. and affiliates
|
2 |
+
# All rights reserved.
|
3 |
+
#
|
4 |
+
# This source code is licensed under the license found in the
|
5 |
+
# MIT_LICENSE file in the root directory of this source tree.
|
6 |
+
|
7 |
+
from setuptools import find_packages, setup
|
8 |
+
|
9 |
+
setup(
|
10 |
+
name="seamless_communication",
|
11 |
+
version="1.0.0",
|
12 |
+
packages=find_packages(where="src"),
|
13 |
+
package_dir={"": "src"},
|
14 |
+
package_data={"": ["py.typed", "cards/*.yaml"]},
|
15 |
+
description="HF test card",
|
16 |
+
long_description=open("README.md", encoding="utf-8").read(),
|
17 |
+
long_description_content_type="text/markdown",
|
18 |
+
readme="README.md",
|
19 |
+
python_requires=">=3.8",
|
20 |
+
author="HF card test",
|
21 |
+
url="[email protected]:spaces/HugoLagoRodrigues/openai-whisper-large-v3.2",
|
22 |
+
license="MIT",
|
23 |
+
install_requires=[
|
24 |
+
"fastapi",
|
25 |
+
],
|
26 |
+
entry_points={
|
27 |
+
"console_scripts": [
|
28 |
+
],
|
29 |
+
},
|
30 |
+
include_package_data=True,
|
31 |
+
)
|