Spaces:
Sleeping
Sleeping
Marcela Malaver
commited on
Commit
·
c3fe88d
1
Parent(s):
290f470
Add demo files
Browse files- README.md +10 -0
- app.py +7 -0
- requirements.txt +44 -0
README.md
CHANGED
@@ -11,3 +11,13 @@ license: mit
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
14 |
+
|
15 |
+
Steps to run locally:
|
16 |
+
```
|
17 |
+
python3 -m venv env # To create an env
|
18 |
+
source env/bin/activate # To activate the env
|
19 |
+
pip3 install streamlit # Only the first time
|
20 |
+
pip3 freeze > requirements.txt # To export the libraries to a file
|
21 |
+
streamlit run app.py # To run the app
|
22 |
+
deactive # To leave the env
|
23 |
+
```
|
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.title("Streamlit First Demo")
|
4 |
+
st.markdown("This is a demo of streamlit / Esta es una demo de streamlit")
|
5 |
+
|
6 |
+
x = st.slider('Select a value / Selecciona un valor')
|
7 |
+
st.write(x, ' squared is / al cuadrado es', x * x)
|
requirements.txt
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
altair==5.2.0
|
2 |
+
attrs==23.2.0
|
3 |
+
blinker==1.7.0
|
4 |
+
cachetools==5.3.2
|
5 |
+
certifi==2023.11.17
|
6 |
+
charset-normalizer==3.3.2
|
7 |
+
click==8.1.7
|
8 |
+
gitdb==4.0.11
|
9 |
+
GitPython==3.1.41
|
10 |
+
idna==3.6
|
11 |
+
importlib-metadata==7.0.1
|
12 |
+
Jinja2==3.1.3
|
13 |
+
jsonschema==4.21.1
|
14 |
+
jsonschema-specifications==2023.12.1
|
15 |
+
markdown-it-py==3.0.0
|
16 |
+
MarkupSafe==2.1.4
|
17 |
+
mdurl==0.1.2
|
18 |
+
numpy==1.26.3
|
19 |
+
packaging==23.2
|
20 |
+
pandas==2.2.0
|
21 |
+
pillow==10.2.0
|
22 |
+
protobuf==4.25.2
|
23 |
+
pyarrow==15.0.0
|
24 |
+
pydeck==0.8.1b0
|
25 |
+
Pygments==2.17.2
|
26 |
+
python-dateutil==2.8.2
|
27 |
+
pytz==2023.3.post1
|
28 |
+
referencing==0.32.1
|
29 |
+
requests==2.31.0
|
30 |
+
rich==13.7.0
|
31 |
+
rpds-py==0.17.1
|
32 |
+
six==1.16.0
|
33 |
+
smmap==5.0.1
|
34 |
+
streamlit==1.30.0
|
35 |
+
tenacity==8.2.3
|
36 |
+
toml==0.10.2
|
37 |
+
toolz==0.12.1
|
38 |
+
tornado==6.4
|
39 |
+
typing_extensions==4.9.0
|
40 |
+
tzdata==2023.4
|
41 |
+
tzlocal==5.2
|
42 |
+
urllib3==2.1.0
|
43 |
+
validators==0.22.0
|
44 |
+
zipp==3.17.0
|