Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
9c39b848f0 | |||
|
6b6735e07f | ||
4b99f2e816 | |||
|
c38f8f2ef8 | ||
478dc3a8a1 |
@@ -23,7 +23,6 @@ COPY pyproject.toml uv.lock ./
|
||||
|
||||
# Copy source code (needed for editable install)
|
||||
COPY src/ src/
|
||||
COPY assets/ assets/
|
||||
|
||||
# Change ownership of source files before building (lighter I/O)
|
||||
RUN chown -R appuser:appuser /app
|
||||
@@ -56,7 +55,6 @@ RUN chown appuser:appuser /app
|
||||
# Copy files from builder with correct ownership
|
||||
COPY --from=builder --chown=appuser:appuser /app/.venv /app/.venv
|
||||
COPY --from=builder --chown=appuser:appuser /app/src /app/src
|
||||
COPY --from=builder --chown=appuser:appuser /app/assets /app/assets
|
||||
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
12
README.md
12
README.md
@@ -68,6 +68,18 @@ docker run -p 8050:8050 ghcr.io/godber/embedding-buddy:latest
|
||||
|
||||
The application will be available at <http://127.0.0.1:8050>
|
||||
|
||||
### macOS Installation Notes
|
||||
|
||||
If installation fails with C++ compiler or library errors (common with `opentsne`), install Xcode Command Line Tools:
|
||||
|
||||
```bash
|
||||
# Install or update Command Line Tools
|
||||
xcode-select --install
|
||||
|
||||
# Or reset existing installation
|
||||
sudo xcode-select --reset
|
||||
```
|
||||
|
||||
### Using the Application
|
||||
|
||||
1. **Open your browser** to <http://127.0.0.1:8050>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "embeddingbuddy"
|
||||
version = "0.8.1"
|
||||
version = "0.8.3"
|
||||
description = "A Python Dash application for interactive exploration and visualization of embedding vectors through dimensionality reduction techniques."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
|
@@ -660,14 +660,12 @@ class DataProcessingCallbacks:
|
||||
import os
|
||||
|
||||
try:
|
||||
# Get the project root directory (four levels up from this file)
|
||||
# Get the embeddingbuddy package directory (three levels up from this file)
|
||||
current_file = os.path.abspath(__file__)
|
||||
project_root = os.path.dirname(
|
||||
os.path.dirname(
|
||||
os.path.dirname(os.path.dirname(os.path.dirname(current_file)))
|
||||
)
|
||||
package_dir = os.path.dirname(
|
||||
os.path.dirname(os.path.dirname(current_file))
|
||||
)
|
||||
sample_file_path = os.path.join(project_root, "assets", "sample-txt.md")
|
||||
sample_file_path = os.path.join(package_dir, "assets", "sample-txt.md")
|
||||
|
||||
if os.path.exists(sample_file_path):
|
||||
with open(sample_file_path, "r", encoding="utf-8") as file:
|
||||
|
Reference in New Issue
Block a user