Iris314 commited on
Commit
662c966
·
verified ·
1 Parent(s): 9d9f45a

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py DELETED
@@ -1,12 +0,0 @@
1
- import os
2
- import zipfile
3
-
4
- ZIP_FILE = "smartFridge.zip" # 你的压缩包名称
5
- TARGET_DIR = "smartFridge" # 解压后的目标文件夹名
6
-
7
- # 如果 zip 存在,并且目标文件夹还没解压,就执行一次解压
8
- if os.path.exists(ZIP_FILE) and not os.path.exists(TARGET_DIR):
9
- print(f"📦 Unzipping {ZIP_FILE} ...")
10
- with zipfile.ZipFile(ZIP_FILE, 'r') as zip_ref:
11
- zip_ref.extractall(".")
12
- print(f"✅ Unzipped to: {os.path.abspath(TARGET_DIR)}")