Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright 2018-2022 Streamlit Inc.
|
2 |
+
#
|
3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
+
# you may not use this file except in compliance with the License.
|
5 |
+
# You may obtain a copy of the License at
|
6 |
+
#
|
7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
#
|
9 |
+
# Unless required by applicable law or agreed to in writing, software
|
10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
+
# See the License for the specific language governing permissions and
|
13 |
+
# limitations under the License.
|
14 |
+
|
15 |
+
import streamlit as st
|
16 |
+
|
17 |
+
|
18 |
+
def run():
|
19 |
+
st.set_page_config(
|
20 |
+
page_title="Hello",
|
21 |
+
page_icon="π",
|
22 |
+
)
|
23 |
+
|
24 |
+
st.write("# Welcome to Streamlit! π")
|
25 |
+
|
26 |
+
st.sidebar.success("Select a demo above.")
|
27 |
+
|
28 |
+
st.markdown(
|
29 |
+
"""
|
30 |
+
Streamlit is an open-source app framework built specifically for
|
31 |
+
Machine Learning and Data Science projects.
|
32 |
+
**π Select a demo from the sidebar** to see some examples
|
33 |
+
of what Streamlit can do!
|
34 |
+
### Want to learn more?
|
35 |
+
- Check out [streamlit.io](https://streamlit.io)
|
36 |
+
- Jump into our [documentation](https://docs.streamlit.io)
|
37 |
+
- Ask a question in our [community
|
38 |
+
forums](https://discuss.streamlit.io)
|
39 |
+
### See more complex demos
|
40 |
+
- Use a neural net to [analyze the Udacity Self-driving Car Image
|
41 |
+
Dataset](https://github.com/streamlit/demo-self-driving)
|
42 |
+
- Explore a [New York City rideshare dataset](https://github.com/streamlit/demo-uber-nyc-pickups)
|
43 |
+
"""
|
44 |
+
)
|
45 |
+
|
46 |
+
|
47 |
+
if __name__ == "__main__":
|
48 |
+
run()
|