Skip to content

Auto deploy on HF space #42

Merged
lfoppiano merged 6 commits intomainfrom
feat/auto-deploy
May 8, 2026
Merged

Auto deploy on HF space #42
lfoppiano merged 6 commits intomainfrom
feat/auto-deploy

Conversation

@Sanakhamassi
Copy link
Copy Markdown
Contributor

No description provided.

@lfoppiano
Copy link
Copy Markdown
Collaborator

@Sanakhamassi is better if you allow the build on pulls as well as commit on main

@lfoppiano
Copy link
Copy Markdown
Collaborator

FYI, HF_SPACE_ID is already set as sciencialab/document-qa-dev

@lfoppiano
Copy link
Copy Markdown
Collaborator

@Sanakhamassi There are conflicts with the target branch, please fix them.

@lfoppiano lfoppiano changed the title Feat/auto deploy on HF space Auto deploy on HF space May 7, 2026
@lfoppiano
Copy link
Copy Markdown
Collaborator

The instance anyway is not working:

[Spaces](https://huggingface.co/spaces)
Hugging Face's logo
[sciencialab](https://huggingface.co/sciencialab)
/
[document-qa-dev](https://huggingface.co/spaces/sciencialab/document-qa-dev)
App
Files
Community
Settings
build error
Job failed with exit code: 1. Reason: cache miss: [run 1/2] COPY --link ./ /app
cache miss: [run 2/2] COPY --from=pipfreeze --link /pipfreeze/ /pipfreeze/
cache miss: [run 2/2] LINK COPY --from=pipfreeze --link /pipfreeze/ /pipfreeze/
cache miss: [base 5/7] RUN --mount=target=/tmp/requirements.txt,source=requirements.txt     pip install --no-cache-dir -r /tmp/requirements.txt     streamlit==1.37.1     "uvicorn>=0.14.0" "websockets>=10.4"     spaces
cache miss: [pipfreeze 1/2] RUN mkdir -p /pipfreeze
cache miss: [pipfreeze 2/2] RUN pip freeze > /pipfreeze/freeze.txt
cache miss: [run 1/2] LINK COPY --link ./ /app
cache miss: [base 6/7] RUN mkdir -p .streamlit && git config --global core.excludesfile ~/.gitignore && echo ".streamlit" > ~/.gitignore
cache miss: [base 7/7] RUN mkdir -p /home/user && ( [ -e /home/user/app ] || ln -s /app/ /home/user/app ) || true
{"total":25,"completed":18,"user_total":14,"user_cached":4,"user_completed":7,"user_cacheable":13,"from":1,"miss":9,"client_duration_ms":16131}

Build logs:

===== Build Queued at 2026-05-07 16:17:47 / Commit SHA: 916dea4 =====

--> FROM docker.io/library/python:3.13@sha256:135188571fdcd2d0627e8248803224e54bad50f843f182bbbaced1626f5f59dd
DONE 0.0s

--> RUN apt-get update && apt-get install -y 	git 	git-lfs 	ffmpeg 	libsm6 	libxext6 	cmake 	rsync 	libgl1 	&& rm -rf /var/lib/apt/lists/* 	&& git lfs install
CACHED

--> COPY --from=root / /
CACHED

--> WORKDIR /app
CACHED

--> RUN pip install --no-cache-dir pip -U &&     pip install --no-cache-dir     datasets     "huggingface-hub>=0.30" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1"
--> Restoring cache
DONE 10.2s

--> RUN --mount=target=/tmp/requirements.txt,source=requirements.txt     pip install --no-cache-dir -r /tmp/requirements.txt     streamlit==1.37.1     "uvicorn>=0.14.0" "websockets>=10.4"     spaces
Collecting streamlit==1.37.1
  Downloading streamlit-1.37.1-py2.py3-none-any.whl.metadata (8.5 kB)
Collecting uvicorn>=0.14.0
  Downloading uvicorn-0.46.0-py3-none-any.whl.metadata (6.7 kB)
Collecting websockets>=10.4
  Downloading websockets-16.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (6.8 kB)
Collecting spaces
  Downloading spaces-0.49.0-py3-none-any.whl.metadata (633 bytes)
Collecting grobid-quantities-client==0.4.0 (from -r /tmp/requirements.txt (line 2))
  Downloading grobid-quantities-client-0.4.0.tar.gz (11 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting grobid-client-python==0.0.9 (from -r /tmp/requirements.txt (line 3))
  Downloading grobid_client_python-0.0.9-py3-none-any.whl.metadata (23 kB)
Collecting grobid-tei-xml==0.1.3 (from -r /tmp/requirements.txt (line 4))
  Downloading grobid_tei_xml-0.1.3-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting tqdm==4.66.3 (from -r /tmp/requirements.txt (line 7))
  Downloading tqdm-4.66.3-py3-none-any.whl.metadata (57 kB)
Collecting pyyaml==6.0.1 (from -r /tmp/requirements.txt (line 8))
  Downloading PyYAML-6.0.1.tar.gz (125 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pytest==8.1.1 (from -r /tmp/requirements.txt (line 9))
  Downloading pytest-8.1.1-py3-none-any.whl.metadata (7.6 kB)
ERROR: Cannot install streamlit==1.37.1 and streamlit==1.45.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested streamlit==1.37.1
    The user requested streamlit==1.45.1

Additionally, some packages in these conflicts have no matching distributions available for your environment:
    streamlit

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

--> ERROR: process "/bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt     streamlit==1.37.1     \"uvicorn>=0.14.0\" \"websockets>=10.4\"     spaces" did not complete successfully: exit code: 1

@lfoppiano lfoppiano merged commit 5c60904 into main May 8, 2026
6 checks passed
@lfoppiano lfoppiano deleted the feat/auto-deploy branch May 8, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants