Open
Conversation
Open
|
Thanks for the fast PR, I really appreciate that. |
|
hm ?! |
domiverse
reviewed
Dec 20, 2025
| .dockerignore | ||
| .gitignore | ||
| *.md | ||
| Dockerfile |
Euda1mon1a
pushed a commit
to Euda1mon1a/ml-sharp
that referenced
this pull request
Dec 28, 2025
Add containerized deployment with NVIDIA CUDA support and a Gradio-based web interface for easier usage. Based on community PR apple#13.
domiverse
reviewed
Dec 28, 2025
| RUN .venv/bin/pip install -r requirements.txt | ||
| RUN .venv/bin/pip install gradio | ||
| RUN ln -s /app/.venv/bin/sharp /usr/local/bin/sharp | ||
|
|
There was a problem hiding this comment.
ENV FORCE_CUDA="1"
RUN .venv/bin/pip install ninja
RUN .venv/bin/pip install -r requirements.txt
domiverse
reviewed
Dec 28, 2025
| "-i", input_path, | ||
| "-o", "/app/data/output", | ||
| "--render" | ||
| ] |
There was a problem hiding this comment.
cmd = [
"sharp", "predict",
"-i", input_path,
"-o", "/app/data/output",
"--render"
]
domiverse
reviewed
Dec 28, 2025
| print(f"Error running sharp: {e}") | ||
| print(f"Stdout: {e.stdout.decode()}") | ||
| print(f"Stderr: {e.stderr.decode()}") | ||
| return None |
There was a problem hiding this comment.
try:
t = time.time()
print("Sharp started")
subprocess.run(cmd, check=True, capture_output=True)
print(f"Sharp command took {round(time.time() - t, 3)} seconds")
except subprocess.CalledProcessError as e:
print(f"Error running sharp: {e}")
print(f"Stdout: {e.stdout.decode()}")
print(f"Stderr: {e.stderr.decode()}")
return None
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a Dockerfile and compose.yml to simplify installation.
It also adds gradio_web.py to provide a web-based interface for improved usability.