Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ add_sidebar_selectbox = st.sidebar.selectbox(
|
|
40 |
|
41 |
def home():
|
42 |
st.write('''
|
43 |
-
#
|
44 |
Hello, I'm Ahmad Alfian Faisal. This is the deployed result of my AI project, a deep learning model, which is part of my Final Project for the AI Engineering SkillAcademy at Ruangguru. If you have any questions or feedback, feel free to reach out to me via [LinkedIn](www.linkedin.com/in/ahmadalfianfaisal).
|
45 |
''')
|
46 |
st.write('''
|
@@ -107,7 +107,7 @@ def prediction():
|
|
107 |
|
108 |
elif model_name == "MobileNet":
|
109 |
model_path = hf_hub_download(repo_id="ahmadalfian/mineral-classification",
|
110 |
-
filename="
|
111 |
model = models.mobilenet_v2(pretrained=False)
|
112 |
num_classes = 36
|
113 |
model.classifier[1] = torch.nn.Linear(in_features=1280, out_features=num_classes)
|
|
|
40 |
|
41 |
def home():
|
42 |
st.write('''
|
43 |
+
# Mineral Classification
|
44 |
Hello, I'm Ahmad Alfian Faisal. This is the deployed result of my AI project, a deep learning model, which is part of my Final Project for the AI Engineering SkillAcademy at Ruangguru. If you have any questions or feedback, feel free to reach out to me via [LinkedIn](www.linkedin.com/in/ahmadalfianfaisal).
|
45 |
''')
|
46 |
st.write('''
|
|
|
107 |
|
108 |
elif model_name == "MobileNet":
|
109 |
model_path = hf_hub_download(repo_id="ahmadalfian/mineral-classification",
|
110 |
+
filename="mobileNetV2_finetuned.pth")
|
111 |
model = models.mobilenet_v2(pretrained=False)
|
112 |
num_classes = 36
|
113 |
model.classifier[1] = torch.nn.Linear(in_features=1280, out_features=num_classes)
|