Spaces:
Runtime error
Runtime error
change sdk to docker
Browse files- .streamlit/config.toml +9 -0
- Dockerfile +24 -0
- README.md +5 -7
.streamlit/config.toml
CHANGED
@@ -1,2 +1,11 @@
|
|
1 |
[theme]
|
2 |
base="dark"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
[theme]
|
2 |
base="dark"
|
3 |
+
|
4 |
+
[browser]
|
5 |
+
serverAddress = "0.0.0.0"
|
6 |
+
serverPort = 7860
|
7 |
+
gatherUsageStats = false
|
8 |
+
|
9 |
+
[server]
|
10 |
+
address = "0.0.0.0"
|
11 |
+
port = 7860
|
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
|
5 |
+
ENV HOME=/home/user
|
6 |
+
|
7 |
+
USER user
|
8 |
+
|
9 |
+
WORKDIR $HOME/code
|
10 |
+
|
11 |
+
# RUN mkdir -p $NLTK_DATA
|
12 |
+
# RUN chmod -R 755 $NLTK_DATA
|
13 |
+
|
14 |
+
COPY --chown=user . $HOME/code
|
15 |
+
|
16 |
+
USER root
|
17 |
+
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
18 |
+
RUN /install.sh && rm /install.sh
|
19 |
+
|
20 |
+
RUN $HOME/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
|
21 |
+
|
22 |
+
USER user
|
23 |
+
|
24 |
+
CMD ["streamlit", "run", "main.py"]
|
README.md
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
---
|
2 |
-
title: Omdena Algeria Bhopal Streamlit App
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: indigo
|
6 |
-
sdk:
|
7 |
-
sdk_version: 1.30.0
|
8 |
-
app_file: main.py
|
9 |
pinned: false
|
10 |
---
|
11 |
|
@@ -31,4 +29,4 @@ To start the system, run the following command in your terminal:
|
|
31 |
|
32 |
```shell
|
33 |
streamlit run main.py
|
34 |
-
``'
|
|
|
1 |
---
|
2 |
+
title: Omdena Algeria & Bhopal Streamlit App
|
3 |
+
emoji: 🐢
|
4 |
+
colorFrom: blue
|
5 |
colorTo: indigo
|
6 |
+
sdk: docker
|
|
|
|
|
7 |
pinned: false
|
8 |
---
|
9 |
|
|
|
29 |
|
30 |
```shell
|
31 |
streamlit run main.py
|
32 |
+
``'
|