com3dian commited on
Commit
40bf35f
·
verified ·
1 Parent(s): ae3e7c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -33,14 +33,6 @@ def submit_file(event):
33
  status.object = "⚠️ Please upload a .zip file before submitting."
34
  return
35
 
36
- # Save uploaded file
37
- timestamp = datetime.datetime.now().isoformat().replace(":", "_")
38
- filename = f"{timestamp}_{file_input.filename}"
39
- submission_path = os.path.join("submissions", filename)
40
- os.makedirs("submissions", exist_ok=True)
41
- with open(submission_path, "wb") as f:
42
- f.write(file_input.value)
43
-
44
  try:
45
  drive_file_id = upload_to_drive(submission_path, filename)
46
  status.object = f"✅ Uploaded to Google Drive [File ID: {drive_file_id}]"
 
33
  status.object = "⚠️ Please upload a .zip file before submitting."
34
  return
35
 
 
 
 
 
 
 
 
 
36
  try:
37
  drive_file_id = upload_to_drive(submission_path, filename)
38
  status.object = f"✅ Uploaded to Google Drive [File ID: {drive_file_id}]"