pr28416 commited on
Commit
aaa54e8
·
1 Parent(s): f05f328

Fix Dockerfile: Remove redundant config.toml copy

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -5
  2. streamlit_app.py +4 -2
Dockerfile CHANGED
@@ -14,13 +14,9 @@ RUN apt-get update && apt-get install -y \
14
  COPY requirements.txt .
15
  RUN pip3 install -r requirements.txt
16
 
17
- # Copy application files
18
  COPY . .
19
 
20
- # Create .streamlit directory and config
21
- RUN mkdir -p .streamlit
22
- COPY .streamlit/config.toml .streamlit/
23
-
24
  # Set environment variables for large uploads and stability
25
  ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=1024
26
  ENV STREAMLIT_SERVER_MAX_MESSAGE_SIZE=1024
 
14
  COPY requirements.txt .
15
  RUN pip3 install -r requirements.txt
16
 
17
+ # Copy application files (includes .streamlit/config.toml)
18
  COPY . .
19
 
 
 
 
 
20
  # Set environment variables for large uploads and stability
21
  ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=1024
22
  ENV STREAMLIT_SERVER_MAX_MESSAGE_SIZE=1024
streamlit_app.py CHANGED
@@ -86,8 +86,10 @@ with col1:
86
  if uploaded is not None:
87
  try:
88
  file_size_mb = len(uploaded.getvalue()) / (1024 * 1024)
89
- st.success(f"✅ Upload successful! File: {uploaded.name} ({file_size_mb:.1f}MB)")
90
-
 
 
91
  if file_size_mb > 200:
92
  st.info(
93
  f"📁 Large file detected ({file_size_mb:.1f}MB). Processing may take a few minutes..."
 
86
  if uploaded is not None:
87
  try:
88
  file_size_mb = len(uploaded.getvalue()) / (1024 * 1024)
89
+ st.success(
90
+ f"✅ Upload successful! File: {uploaded.name} ({file_size_mb:.1f}MB)"
91
+ )
92
+
93
  if file_size_mb > 200:
94
  st.info(
95
  f"📁 Large file detected ({file_size_mb:.1f}MB). Processing may take a few minutes..."