Spaces:
Running
Running
chore: deploy dashboard from GitHub Actions
Browse files- Dockerfile +5 -0
- app.py +13 -4
Dockerfile
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
FROM python:3.11-slim
|
|
|
|
| 2 |
WORKDIR /app
|
|
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 5 |
COPY app.py .
|
|
|
|
| 6 |
EXPOSE 7860
|
|
|
|
| 7 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
WORKDIR /app
|
| 4 |
+
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
+
|
| 8 |
COPY app.py .
|
| 9 |
+
|
| 10 |
EXPOSE 7860
|
| 11 |
+
|
| 12 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]
|
app.py
CHANGED
|
@@ -152,8 +152,9 @@ min_stars = st.sidebar.slider("Min stars", 0, 500, 0, key="g_stars")
|
|
| 152 |
|
| 153 |
st.sidebar.divider()
|
| 154 |
st.sidebar.markdown(
|
| 155 |
-
"π [GitHub
|
| 156 |
-
"[Dataset
|
|
|
|
| 157 |
unsafe_allow_html=True,
|
| 158 |
)
|
| 159 |
|
|
@@ -971,10 +972,17 @@ with tab_about:
|
|
| 971 |
|
| 972 |
st.divider()
|
| 973 |
|
| 974 |
-
st.subheader("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 975 |
st.write(
|
| 976 |
"The scraper, tagger, and dashboard are all open source. "
|
| 977 |
-
"
|
| 978 |
)
|
| 979 |
st.markdown("[github.com/AndreasThinks/open-govtech-report](https://github.com/AndreasThinks/open-govtech-report)")
|
| 980 |
|
|
@@ -991,5 +999,6 @@ st.caption(
|
|
| 991 |
"Data sourced from government GitHub accounts worldwide. Updated weekly. "
|
| 992 |
"| [GitHub](https://github.com/AndreasThinks/open-govtech-report) "
|
| 993 |
"| [Dataset](https://huggingface.co/datasets/AndreasThinks/government-github-repos) "
|
|
|
|
| 994 |
"| β¨ A project by [AndreasThinks](https://andreasthinks.me)"
|
| 995 |
)
|
|
|
|
| 152 |
|
| 153 |
st.sidebar.divider()
|
| 154 |
st.sidebar.markdown(
|
| 155 |
+
"π [GitHub](https://github.com/AndreasThinks/open-govtech-report) | "
|
| 156 |
+
"[Dataset](https://huggingface.co/datasets/AndreasThinks/government-github-repos) | "
|
| 157 |
+
"[β Submit a missing org](https://github.com/AndreasThinks/open-govtech-report/blob/main/CONTRIBUTING.md)",
|
| 158 |
unsafe_allow_html=True,
|
| 159 |
)
|
| 160 |
|
|
|
|
| 972 |
|
| 973 |
st.divider()
|
| 974 |
|
| 975 |
+
st.subheader("Contribute")
|
| 976 |
+
st.write(
|
| 977 |
+
"Know a government GitHub organisation that's missing from the dataset? "
|
| 978 |
+
"Submit it via a pull request β it'll be included in the next weekly scrape."
|
| 979 |
+
)
|
| 980 |
+
st.markdown(
|
| 981 |
+
"π **[How to submit a missing organisation](https://github.com/AndreasThinks/open-govtech-report/blob/main/CONTRIBUTING.md)**"
|
| 982 |
+
)
|
| 983 |
st.write(
|
| 984 |
"The scraper, tagger, and dashboard are all open source. "
|
| 985 |
+
"Issues and pull requests welcome."
|
| 986 |
)
|
| 987 |
st.markdown("[github.com/AndreasThinks/open-govtech-report](https://github.com/AndreasThinks/open-govtech-report)")
|
| 988 |
|
|
|
|
| 999 |
"Data sourced from government GitHub accounts worldwide. Updated weekly. "
|
| 1000 |
"| [GitHub](https://github.com/AndreasThinks/open-govtech-report) "
|
| 1001 |
"| [Dataset](https://huggingface.co/datasets/AndreasThinks/government-github-repos) "
|
| 1002 |
+
"| [β Submit a missing org](https://github.com/AndreasThinks/open-govtech-report/blob/main/CONTRIBUTING.md) "
|
| 1003 |
"| β¨ A project by [AndreasThinks](https://andreasthinks.me)"
|
| 1004 |
)
|