Sorghum grass
commited on
Commit
Β·
ac8824d
1
Parent(s):
5c4bb0b
Create Docs.md
Browse files
Docs.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
π Get started with your streamlit Space!
|
2 |
+
Your new space has been created, follow these steps to get started (or read our full documentation )
|
3 |
+
Start by cloning this repo by using:
|
4 |
+
|
5 |
+
git clone https://huggingface.co/spaces/Sorghumgrass/Streamlit
|
6 |
+
Create your Streamlit app.py file:
|
7 |
+
|
8 |
+
import streamlit as st
|
9 |
+
|
10 |
+
x = st.slider('Select a value')
|
11 |
+
st.write(x, 'squared is', x * x)
|
12 |
+
Then commit and push:
|
13 |
+
|
14 |
+
git add app.py git commit -m "Add application file" git push
|
15 |
+
(Hint: Create the app.py file right in your browser alternatively)
|
16 |
+
|
17 |
+
π€ Your app should be running on this page after a few moments !
|
18 |
+
|
19 |
+
Dependencies
|
20 |
+
|
21 |
+
You can add a requirements.txt file at the root of the repository to specify Python dependencies
|
22 |
+
If needed, you can add also add a packages.txt file at the root of the repository to specify Debian dependencies.
|
23 |
+
The streamlit package comes pre-installed at version 1.17.0
|
24 |
+
|
25 |
+
Documentation
|
26 |
+
|
27 |
+
Check out the full documentation of streamlit Spaces here
|