Spaces:
Sleeping
Sleeping
mahmoud669
commited on
Commit
•
2945403
1
Parent(s):
3e126cd
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,10 @@ with right_column:
|
|
121 |
model_s.load_state_dict(torch.load('celeb-model-unlearned.pth', map_location=torch.device('cpu')))
|
122 |
model_s.eval()
|
123 |
|
124 |
-
|
|
|
|
|
|
|
125 |
# Perform inference
|
126 |
st.write("Performing inference...")
|
127 |
|
|
|
121 |
model_s.load_state_dict(torch.load('celeb-model-unlearned.pth', map_location=torch.device('cpu')))
|
122 |
model_s.eval()
|
123 |
|
124 |
+
uploaded_file2 = st.file_uploader("Choose image...", type=["jpg", "jpeg", "png"])
|
125 |
+
image2 = Image.open(uploaded_file2)
|
126 |
+
st.image(image2, caption='Uploaded Image.', width=300)
|
127 |
+
|
128 |
# Perform inference
|
129 |
st.write("Performing inference...")
|
130 |
|