danielRamon commited on
Commit
9bdb08a
·
1 Parent(s): 6fed78a

sync with huggingface

Browse files
.devcontainer/devcontainer.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "name": "Python 3",
3
- // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
4
- "build": {
5
- // Path is relative to the devcontainer.json file.
6
- "dockerfile": "../Dockerfile"
7
- },
8
- "customizations": {
9
- "codespaces": {
10
- "openFiles": [
11
- "README.md",
12
- "app.py"
13
- ]
14
- },
15
- "vscode": {
16
- "settings": {},
17
- "extensions": [
18
- "ms-python.python",
19
- "ms-python.vscode-pylance"
20
- ]
21
- }
22
- },
23
- "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'",
24
- "postAttachCommand": {
25
- "server": "streamlit run app.py --server.enableCORS false --server.enableXsrfProtection false"
26
- },
27
- "portsAttributes": {
28
- "8501": {
29
- "label": "Application",
30
- "onAutoForward": "openPreview"
31
- }
32
- },
33
- "forwardPorts": [
34
- 8501
35
- ]
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/check_size.yml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check file size
2
+ on:
3
+ pull_request:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Check large files
14
+ uses: ActionsDesk/[email protected]
15
+ with:
16
+ filesizelimit: 10485760 # this is 10MB
.github/workflows/main.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push https://HF_USERNAME:[email protected]/spaces/danielRamon/handbookreader main
21
+