Dmitry Beresnev
commited on
Commit
·
cb0e852
1
Parent(s):
e66b0a6
fix dockerfile
Browse files- .streamlit/config.toml +2 -0
- Dockerfile +3 -0
- app.py +2 -1
.streamlit/config.toml
CHANGED
|
@@ -6,6 +6,8 @@ enableCORS = false
|
|
| 6 |
enableXsrfProtection = false
|
| 7 |
maxUploadSize = 10
|
| 8 |
maxMessageSize = 200
|
|
|
|
|
|
|
| 9 |
|
| 10 |
[browser]
|
| 11 |
gatherUsageStats = false
|
|
|
|
| 6 |
enableXsrfProtection = false
|
| 7 |
maxUploadSize = 10
|
| 8 |
maxMessageSize = 200
|
| 9 |
+
enableStaticServing = true
|
| 10 |
+
enableWebsocketCompression = false
|
| 11 |
|
| 12 |
[browser]
|
| 13 |
gatherUsageStats = false
|
Dockerfile
CHANGED
|
@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 5 |
tesseract-ocr \
|
| 6 |
tesseract-ocr-eng \
|
| 7 |
libtesseract-dev \
|
|
|
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
# Set working directory
|
|
@@ -26,6 +27,8 @@ EXPOSE 7860
|
|
| 26 |
ENV STREAMLIT_SERVER_PORT=7860
|
| 27 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 28 |
ENV STREAMLIT_SERVER_HEADLESS=true
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Health check
|
| 31 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
|
|
|
|
| 5 |
tesseract-ocr \
|
| 6 |
tesseract-ocr-eng \
|
| 7 |
libtesseract-dev \
|
| 8 |
+
curl \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Set working directory
|
|
|
|
| 27 |
ENV STREAMLIT_SERVER_PORT=7860
|
| 28 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 29 |
ENV STREAMLIT_SERVER_HEADLESS=true
|
| 30 |
+
ENV STREAMLIT_SERVER_ENABLE_CORS=false
|
| 31 |
+
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
|
| 32 |
|
| 33 |
# Health check
|
| 34 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
|
app.py
CHANGED
|
@@ -70,7 +70,8 @@ with col1:
|
|
| 70 |
uploaded_file = st.file_uploader(
|
| 71 |
"Upload portfolio screenshot (PNG, JPG, JPEG)",
|
| 72 |
type=["png", "jpg", "jpeg"],
|
| 73 |
-
help="Upload a screenshot of your portfolio with ticker symbols and amounts"
|
|
|
|
| 74 |
)
|
| 75 |
|
| 76 |
if uploaded_file:
|
|
|
|
| 70 |
uploaded_file = st.file_uploader(
|
| 71 |
"Upload portfolio screenshot (PNG, JPG, JPEG)",
|
| 72 |
type=["png", "jpg", "jpeg"],
|
| 73 |
+
help="Upload a screenshot of your portfolio with ticker symbols and amounts",
|
| 74 |
+
key="portfolio_uploader"
|
| 75 |
)
|
| 76 |
|
| 77 |
if uploaded_file:
|