Spaces:
Sleeping
Sleeping
feat(main): minimal streamlit app
Browse files- .streamlit/config.toml +2 -0
- Dockerfile +4 -3
- README.md +1 -0
- shad_mlops_transformers/main.py +8 -0
.streamlit/config.toml
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[server]
|
2 |
+
port = 7860
|
Dockerfile
CHANGED
@@ -4,8 +4,9 @@ WORKDIR /code
|
|
4 |
COPY pyproject.toml .
|
5 |
COPY poetry.lock .
|
6 |
|
7 |
-
RUN poetry install -vv --no-root
|
8 |
-
|
9 |
COPY . .
|
10 |
# second time since --no-root was used
|
11 |
-
RUN poetry install
|
|
|
|
|
|
4 |
COPY pyproject.toml .
|
5 |
COPY poetry.lock .
|
6 |
|
7 |
+
RUN poetry install -vv --no-root --without dev
|
|
|
8 |
COPY . .
|
9 |
# second time since --no-root was used
|
10 |
+
RUN poetry install --only-root
|
11 |
+
|
12 |
+
ENTRYPOINT ["streamlit", "run", "shad_mlops_transformers/main.py"]
|
README.md
CHANGED
@@ -6,6 +6,7 @@ colorTo: blue
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: mit
|
|
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: mit
|
9 |
+
app_port: 7860
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
shad_mlops_transformers/main.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
st.markdown("### Hello there")
|
4 |
+
st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
|
5 |
+
|
6 |
+
text = st.text_area("TEXT HERE")
|
7 |
+
|
8 |
+
st.markdown("hey you")
|