DIVYANSHI SINGH commited on
Commit
5ba38b8
·
1 Parent(s): a1398e2

Fix permission error by routing temp image scans to /tmp

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -194,7 +194,7 @@ def main():
194
  status_text.text(f"Scanning {file.name} ({i+1}/{len(uploaded_files)})...")
195
  with st.spinner(f"Extracting fields from {file.name}..."):
196
  try:
197
- temp_path = f"temp_{file.name}"
198
  with open(temp_path, "wb") as f:
199
  f.write(file.getvalue())
200
 
 
194
  status_text.text(f"Scanning {file.name} ({i+1}/{len(uploaded_files)})...")
195
  with st.spinner(f"Extracting fields from {file.name}..."):
196
  try:
197
+ temp_path = f"/tmp/temp_{file.name}"
198
  with open(temp_path, "wb") as f:
199
  f.write(file.getvalue())
200