Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avidhanr/streamlitwebapp
Sample project using Python streamlit package.
https://github.com/avidhanr/streamlitwebapp
python3 streamlit
Last synced: about 1 month ago
JSON representation
Sample project using Python streamlit package.
- Host: GitHub
- URL: https://github.com/avidhanr/streamlitwebapp
- Owner: AVidhanR
- Created: 2024-05-07T09:06:51.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-12T03:33:05.000Z (8 months ago)
- Last Synced: 2024-05-12T04:25:59.081Z (8 months ago)
- Topics: python3, streamlit
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Sample `Streamlit` Project
- Create a new project in `Pycharm` (Recommended)
- Create a new file and name it as `main.py`
- Install the below packages in your project.
```bash
pip install streamlit
```
- Write the below code,
```py
import streamlit as st
import numpy as npcontainer = st.container()
container.header("About me")
# * Interesting [streamlit]
# container.markdown(
# """
#
# /* Define custom CSS styles */
# .custom-text {
# font-size: 1.5rem; /* Adjust font size as needed */
# font-weight: bold; /* Make text bold */
# }
#
#Bio:
# """,
# unsafe_allow_html = True
# )
container.text(
"Hello! I'm Vidhan, A Compute Science undergraduate. \nI love to learn new Stuff and upgrade myself"
)
container.markdown(
"""
Vist my github
""",
unsafe_allow_html = True
)
message = st.chat_message("assistant")
message.write("Hello human")
prompt = st.chat_input("Enter something")
if prompt:
st.write(f"User has entered something: {prompt}")
message.bar_chart(np.random.randn(30, 3))
btn = container.button("I'm Feeling lucky!")
if btn:
st.balloons()```
- Save the code in your file [`main.py`]()
```bash
streamlit run main.py
```
- Open the `localhost:8501` or by clicking it from the terminal
- Thats it your first `Streamlit` web app is ready.
----
# OR
----
- Fork this `repo` and open it in `PyCharm`
- Run the app, alter it, experiment it ([`Streamlit Documentaion`](https://docs.streamlit.io/))
- Project by [`AVidhanR`]()