Azaya89 commited on
Commit
6d0dea9
·
1 Parent(s): 1a890d0

add config for huggingface

Browse files
Files changed (3) hide show
  1. .github/workflows/hugging_face.yml +19 -0
  2. Dockerfile +19 -0
  3. README.md +12 -0
.github/workflows/hugging_face.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ # to run this workflow manually from the Actions tab
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+ lfs: true
16
+ - name: Push to hub
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_INSIGHTS_TOKEN }}
19
+ run: git push -f https://Azaya89:[email protected]/spaces/Azaya89/Holoviz-insights main
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mambaorg/micromamba:2.3.0
2
+
3
+ WORKDIR /code
4
+
5
+ COPY environment.yml /code/environment.yml
6
+
7
+ RUN micromamba env create -f /code/environment.yml -n appenv \
8
+ && micromamba clean --all --yes
9
+
10
+ COPY . .
11
+
12
+ RUN mkdir /.cache .chroma && chmod 777 /.cache .chroma
13
+
14
+ SHELL ["/bin/bash", "-c"]
15
+
16
+ ENV MAMBA_DOCKERFILE_ACTIVATE=1
17
+ ENV PATH /opt/conda/envs/appenv/bin:$PATH
18
+
19
+ CMD ["micromamba", "run", "-n", "appenv", "panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
README.md CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  # HoloViz Insights Dashboard
2
 
3
  To run this dashboard:
 
1
+ ---
2
+ title: HoloViz Insights
3
+ short_description: Metrics from selected HoloViz repositories
4
+ emoji: 📈
5
+ colorFrom: blue
6
+ colorTo: purple
7
+ sdk: docker
8
+ python_version: "3.13"
9
+ app_file: app.py
10
+ pinned: true
11
+ ---
12
+
13
  # HoloViz Insights Dashboard
14
 
15
  To run this dashboard: