Spaces:
Sleeping
Sleeping
Merge branch 'test' of https://github.com/camlsys/compliancecards into dev
Browse files- .github/workflows/main.yml +29 -0
- README.md +7 -0
- utils.py +1 -1
.github/workflows/main.yml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face Hub
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [main, test]
|
6 |
+
|
7 |
+
# To run this workflow manually from the Actions tab
|
8 |
+
workflow_dispatch:
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
sync-to-hub:
|
12 |
+
runs-on: ubuntu-latest
|
13 |
+
steps:
|
14 |
+
- uses: actions/checkout@v3
|
15 |
+
with:
|
16 |
+
fetch-depth: 0
|
17 |
+
lfs: true
|
18 |
+
|
19 |
+
- name: Push main branch to Hugging Face
|
20 |
+
if: github.ref == 'refs/heads/main'
|
21 |
+
env:
|
22 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
23 |
+
run: git push https://billmarino:$HF_TOKEN@huggingface.co/spaces/camlsys/compliancecards main
|
24 |
+
|
25 |
+
- name: Push test branch to Hugging Face
|
26 |
+
if: github.ref == 'refs/heads/test'
|
27 |
+
env:
|
28 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
29 |
+
run: git push https://billmarino:$HF_TOKEN@huggingface.co/spaces/camlsys/compliancecards test
|
README.md
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# compliancecards
|
2 |
|
3 |
This is a Python implementation of the Compliance Cards system described in: [Paper](https://arxiv.org/abs/2406.14758)
|
|
|
1 |
+
---
|
2 |
+
title: compliancecards
|
3 |
+
sdk: streamlit
|
4 |
+
app_file: app.py
|
5 |
+
pinned: false
|
6 |
+
---
|
7 |
+
|
8 |
# compliancecards
|
9 |
|
10 |
This is a Python implementation of the Compliance Cards system described in: [Paper](https://arxiv.org/abs/2406.14758)
|
utils.py
CHANGED
@@ -105,4 +105,4 @@ def check_prohibited(project_cc_yaml):
|
|
105 |
|
106 |
# If ((project_cc_yaml['article_50']['deepfake_not_art'] == True and project_cc_yaml['article_50']['deepfake_law'] == False and ['article_50_obligations']['deepfake_disclosure'] == False) or (project_cc_yaml['article_50']['deepfake_art'] == True and project_cc_yaml['article_50']['deepfake_law'] == False and project_cc_yaml['article_50_obligations']['deepfake_disclosure_art'] == False)):
|
107 |
# print("You are not are not compliance with Article 50(4).")
|
108 |
-
# return False
|
|
|
105 |
|
106 |
# If ((project_cc_yaml['article_50']['deepfake_not_art'] == True and project_cc_yaml['article_50']['deepfake_law'] == False and ['article_50_obligations']['deepfake_disclosure'] == False) or (project_cc_yaml['article_50']['deepfake_art'] == True and project_cc_yaml['article_50']['deepfake_law'] == False and project_cc_yaml['article_50_obligations']['deepfake_disclosure_art'] == False)):
|
107 |
# print("You are not are not compliance with Article 50(4).")
|
108 |
+
# return False
|