Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,15 @@ def load_data():
|
|
50 |
index_df = pd.read_csv(index_file_path)
|
51 |
return index_df
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
# γ’γγγγΌγγγγεηγ葨瀺γγι’ζ°
|
54 |
def display_photos(photos):
|
55 |
for photo_info in photos.iterrows():
|
|
|
50 |
index_df = pd.read_csv(index_file_path)
|
51 |
return index_df
|
52 |
|
53 |
+
# γ’γγγγΌγγγγεηγδΏεγγι’ζ°
|
54 |
+
def save_uploaded_photo(uploaded_photo, file_name):
|
55 |
+
if not os.path.exists(photos_folder):
|
56 |
+
os.makedirs(photos_folder)
|
57 |
+
|
58 |
+
# γ’γγγγΌγγγγεηγδΏε
|
59 |
+
image = Image.open(uploaded_photo)
|
60 |
+
image.save(os.path.join(photos_folder, file_name), "PNG")
|
61 |
+
|
62 |
# γ’γγγγΌγγγγεηγ葨瀺γγι’ζ°
|
63 |
def display_photos(photos):
|
64 |
for photo_info in photos.iterrows():
|