Pavan2k4 commited on
Commit
0e12c82
·
verified ·
1 Parent(s): 273a3c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,12 +61,12 @@ def save_to_hf_repo(local_path, repo_path):
61
  )
62
  st.success(f"File uploaded successfully to {repo_path}")
63
  except Exception as e:
64
- st.error(f"Error uploading file: {str(e)}")
65
- st.error("Detailed error information:")
66
  st.exception(e)
67
 
68
 
69
- BASE_DIR = ""
70
 
71
  # Define subdirectories
72
  UPLOAD_DIR = os.path.join(BASE_DIR, "uploaded_images")
 
61
  )
62
  st.success(f"File uploaded successfully to {repo_path}")
63
  except Exception as e:
64
+ st.error(f"Uploaded")
65
+
66
  st.exception(e)
67
 
68
 
69
+ BASE_DIR = os.getcwd()
70
 
71
  # Define subdirectories
72
  UPLOAD_DIR = os.path.join(BASE_DIR, "uploaded_images")