Spaces:
Runtime error
Runtime error
Commit
•
653b0e9
0
Parent(s):
Duplicate from CarlosMF/AI-ORUS-License-v1
Browse files- .gitattributes +34 -0
- README.md +14 -0
- app.py +36 -0
- some_pdf.pdf +0 -0
.gitattributes
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Show Pdf
|
3 |
+
emoji: 😻
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: yellow
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: 1.17.0
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
+
duplicated_from: CarlosMF/AI-ORUS-License-v1
|
12 |
+
---
|
13 |
+
|
14 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import base64
|
3 |
+
|
4 |
+
|
5 |
+
PDF_WIDTH = 700
|
6 |
+
PDF_HEIGHT = 1000
|
7 |
+
PDF_PATH = "/AI%20ORUS%20License%20(1).pdf"
|
8 |
+
|
9 |
+
def display_pdf(file):
|
10 |
+
# Opening file from file path
|
11 |
+
with open(file, "rb") as f:
|
12 |
+
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
13 |
+
|
14 |
+
# Embedding PDF in HTML
|
15 |
+
pdf_display = F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="{PDF_WIDTH}" height="{PDF_HEIGHT}" type="application/pdf"></iframe>'
|
16 |
+
|
17 |
+
# Displaying File
|
18 |
+
st.markdown(pdf_display, unsafe_allow_html=True)
|
19 |
+
|
20 |
+
st.title("AI Open Responsible Use License - Version 1.0.0")
|
21 |
+
|
22 |
+
st.markdown("## Purpose")
|
23 |
+
|
24 |
+
st.markdown("This license covers any AI-specific material, such as neural networks or any other type of model, software, data, or other material that is designated as being available under this license. These materials, together, are referred to in this license as licensed materials. This license gives you as much permission as possible to use, share and improve the licensed materials. This license places no limitations on the use of output from any model, or any changes you make to any licensed materials. It should be interpreted to provide you with the maximum possible freedom.")
|
25 |
+
|
26 |
+
st.markdown("## License")
|
27 |
+
|
28 |
+
st.markdown("Each contributor licenses you to do everything with the licensed materials that would otherwise infringe that contributor’s rights, including without limitation copyright, patent, trade secret rights, and the right to use the data to train models, but only in compliance with applicable law. However, this license grants you no trademark or publicity rights.")
|
29 |
+
|
30 |
+
st.markdown("## Indemnity")
|
31 |
+
|
32 |
+
st.markdown("If you use the Licensed Materials in a manner not compliant with applicable law, or that otherwise causes any Contributor legal liability relating to your use of the Licensed Materials, or that damages the reputation of any Contributor, you must, as a condition of this license as a promise to each Contributor, defend and indemnify every Contributor against any resulting losses, damages or costs.")
|
33 |
+
|
34 |
+
st.markdown("## No Liability")
|
35 |
+
|
36 |
+
st.markdown("As far as the law allows, each licensed material is provided as is, without any warranty or condition, and no contributor will be liable to anyone for any damages related to this any licensed material or this license, under any kind of legal claim.")
|
some_pdf.pdf
ADDED
Binary file (90.3 kB). View file
|
|