-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
99 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ typings/ | |
|
||
# Output of 'npm pack' | ||
*.tgz | ||
*.whl | ||
|
||
# xconsole | ||
src/.xconsole | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3.9 | ||
|
||
WORKDIR /code | ||
|
||
COPY --link --chown=1000 . . | ||
|
||
RUN mkdir -p /tmp/cache/ | ||
RUN chmod a+rwx -R /tmp/cache/ | ||
ENV TRANSFORMERS_CACHE=/tmp/cache/ | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces | ||
|
||
CMD ["python", "app.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
modelscope_studio | ||
modelscope_studio-0.0.8-py3-none-any.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[build-system] | ||
requires = [ | ||
"hatchling", | ||
"hatch-requirements-txt", | ||
"hatch-fancy-pypi-readme>=22.5.0", | ||
] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "modelscope_studio" | ||
version = "0.0.8" | ||
description = "A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios." | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
requires-python = ">=3.8" | ||
authors = [{ name = "YOUR NAME", email = "[email protected]" }] | ||
keywords = [ | ||
"gradio-custom-component", | ||
"modelscope-studio", | ||
"gradio-template-Chatbot", | ||
] | ||
# Add dependencies here | ||
dependencies = ["gradio>=4.0,<5.0"] | ||
classifiers = [ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
'Topic :: Scientific/Engineering :: Visualization', | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = ["build", "twine"] | ||
|
||
[tool.hatch.build] | ||
artifacts = [ | ||
"*.pyi", | ||
"backend/modelscope_studio/components/Chatbot/templates", | ||
"backend/modelscope_studio/components/MultimodalInput/templates", | ||
"backend/modelscope_studio/components/Markdown/templates", | ||
] | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["/backend/modelscope_studio"] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["/backend/modelscope_studio"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters