Spaces:
Runtime error
Runtime error
Update from brunch
Browse files- Dockerfile +3 -3
- Taskfile.yml +2 -2
- token.json +1 -1
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM ghcr.io/astral-sh/uv:0.7.6-python3.11-bookworm
|
|
| 3 |
# Set environment variables
|
| 4 |
ENV PYTHONUNBUFFERED=1 \
|
| 5 |
PYTHONDONTWRITEBYTECODE=1 \
|
| 6 |
-
PORT=
|
| 7 |
HF_HOME=/workspace \
|
| 8 |
SPACE_ID=""
|
| 9 |
# Check if we're running in a HF Space
|
|
@@ -26,7 +26,7 @@ COPY app/ ./app/
|
|
| 26 |
# Install dependencies
|
| 27 |
RUN uv sync
|
| 28 |
|
| 29 |
-
EXPOSE
|
| 30 |
|
| 31 |
# Create and set permissions for workspace and cache directories
|
| 32 |
RUN mkdir -p /workspace/hub/.cache && \
|
|
@@ -48,4 +48,4 @@ USER user
|
|
| 48 |
VOLUME /workspace
|
| 49 |
|
| 50 |
# Run the app and tools_server.py
|
| 51 |
-
CMD uvicorn app.api.tools_server:app --host 0.0.0.0 --port
|
|
|
|
| 3 |
# Set environment variables
|
| 4 |
ENV PYTHONUNBUFFERED=1 \
|
| 5 |
PYTHONDONTWRITEBYTECODE=1 \
|
| 6 |
+
PORT=8080 \
|
| 7 |
HF_HOME=/workspace \
|
| 8 |
SPACE_ID=""
|
| 9 |
# Check if we're running in a HF Space
|
|
|
|
| 26 |
# Install dependencies
|
| 27 |
RUN uv sync
|
| 28 |
|
| 29 |
+
EXPOSE 8080
|
| 30 |
|
| 31 |
# Create and set permissions for workspace and cache directories
|
| 32 |
RUN mkdir -p /workspace/hub/.cache && \
|
|
|
|
| 48 |
VOLUME /workspace
|
| 49 |
|
| 50 |
# Run the app and tools_server.py
|
| 51 |
+
CMD uvicorn app.api.tools_server:app --host 0.0.0.0 --port 8080
|
Taskfile.yml
CHANGED
|
@@ -24,7 +24,7 @@ tasks:
|
|
| 24 |
test:
|
| 25 |
desc: Run all tests
|
| 26 |
cmds:
|
| 27 |
-
- uvicorn tools_server:app --host 0.0.0.0 --port
|
| 28 |
- sleep 2 # Give the server a moment to start
|
| 29 |
- uv run python -m pytest tests
|
| 30 |
|
|
@@ -32,7 +32,7 @@ tasks:
|
|
| 32 |
run-all:
|
| 33 |
desc: Run tools_server.py and run_all_benchmarks.py
|
| 34 |
cmds:
|
| 35 |
-
- uvicorn tools_server:app --host 0.0.0.0 --port
|
| 36 |
- sleep 2
|
| 37 |
- uv run python run_all_benchmarks.py {{.ARGS}}
|
| 38 |
vars:
|
|
|
|
| 24 |
test:
|
| 25 |
desc: Run all tests
|
| 26 |
cmds:
|
| 27 |
+
- uvicorn app.api.tools_server:app --host 0.0.0.0 --port 8800 &
|
| 28 |
- sleep 2 # Give the server a moment to start
|
| 29 |
- uv run python -m pytest tests
|
| 30 |
|
|
|
|
| 32 |
run-all:
|
| 33 |
desc: Run tools_server.py and run_all_benchmarks.py
|
| 34 |
cmds:
|
| 35 |
+
- uvicorn app.api.tools_server:app --host 0.0.0.0 --port 8800 &
|
| 36 |
- sleep 2
|
| 37 |
- uv run python run_all_benchmarks.py {{.ARGS}}
|
| 38 |
vars:
|
token.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"token": "ya29.
|
|
|
|
| 1 |
+
{"token": "ya29.a0AW4XtxiAdqXIzg5Lbh1CVMohA-rlaS6ooAyKNHURAT8y9y8ITwKaJvi9sYZhrfsje7SmO2Es2agUDGBXxG3Dk7j061WaS6icz3q5fqnhNKfUV2j1itfxEhGM9BiO9oH9EQhURpeBE17Ibtuf0d_S5YnBWzXxNMZ5qPHqE7ggjAaCgYKARoSARcSFQHGX2MiWMqyEoiQxnw3X20nHQ8zCA0177", "refresh_token": "1//09rB0vt1byBPUCgYIARAAGAkSNwF-L9Irnb-722oUr1qWxNyTrgHBw5g4CXPlqh2F1IMoGCkTCkYRiuaEHWiAChQUzCFi_8LjTEA", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "499564774088-rh5r95cgo1p1o4lr94fvbrd7jg9p494f.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.send"], "universe_domain": "googleapis.com", "account": "", "expiry": "2025-05-22T09:38:31.203438Z"}
|