Spaces:
Sleeping
Sleeping
Update app (1).py
Browse files- app (1).py +1 -1
app (1).py
CHANGED
|
@@ -43,7 +43,7 @@ if uploaded_file is not None:
|
|
| 43 |
image_ = Image.open(uploaded_file).convert('RGB')
|
| 44 |
else:
|
| 45 |
st.info("No image uploaded. Using default image.")
|
| 46 |
-
default_path = "
|
| 47 |
if os.path.exists(default_path):
|
| 48 |
image_ = Image.open(default_path).convert('RGB')
|
| 49 |
else:
|
|
|
|
| 43 |
image_ = Image.open(uploaded_file).convert('RGB')
|
| 44 |
else:
|
| 45 |
st.info("No image uploaded. Using default image.")
|
| 46 |
+
default_path = "dog.jpg" # Make sure this file exists in your project folder
|
| 47 |
if os.path.exists(default_path):
|
| 48 |
image_ = Image.open(default_path).convert('RGB')
|
| 49 |
else:
|