Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -171,6 +171,18 @@ with gr.Blocks(css=custom_css, title="Netra AI - Material Classifier") as demo:
|
|
| 171 |
"""
|
| 172 |
)
|
| 173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
with gr.Column(scale=1):
|
| 175 |
result_output = gr.Markdown("", elem_id="result")
|
| 176 |
confidence_output = gr.Markdown("", elem_id="confidence")
|
|
@@ -203,18 +215,6 @@ with gr.Blocks(css=custom_css, title="Netra AI - Material Classifier") as demo:
|
|
| 203 |
"""
|
| 204 |
)
|
| 205 |
|
| 206 |
-
# Example images
|
| 207 |
-
gr.Markdown("### 📷 Try These Sample Images")
|
| 208 |
-
gr.Examples(
|
| 209 |
-
examples=[
|
| 210 |
-
["sanity_test_dataset/12mm_VSI_01.jpeg"],
|
| 211 |
-
["sanity_test_dataset/Reet_01_fine.jpeg"],
|
| 212 |
-
["sanity_test_dataset/Stone_01.jpeg"],
|
| 213 |
-
["sanity_test_dataset/GSB_01.jpeg"],
|
| 214 |
-
],
|
| 215 |
-
inputs=image_input,
|
| 216 |
-
label="Sample Materials"
|
| 217 |
-
)
|
| 218 |
|
| 219 |
# Connect button
|
| 220 |
classify_btn.click(
|
|
|
|
| 171 |
"""
|
| 172 |
)
|
| 173 |
|
| 174 |
+
gr.Markdown("### 📷 Try Sample Images")
|
| 175 |
+
gr.Examples(
|
| 176 |
+
examples=[
|
| 177 |
+
["sanity_test_dataset/12mm_VSI_01.jpeg"],
|
| 178 |
+
["sanity_test_dataset/Reet_01_fine.jpeg"],
|
| 179 |
+
["sanity_test_dataset/Stone_01.jpeg"],
|
| 180 |
+
["sanity_test_dataset/GSB_01.jpeg"],
|
| 181 |
+
],
|
| 182 |
+
inputs=image_input,
|
| 183 |
+
label=""
|
| 184 |
+
)
|
| 185 |
+
|
| 186 |
with gr.Column(scale=1):
|
| 187 |
result_output = gr.Markdown("", elem_id="result")
|
| 188 |
confidence_output = gr.Markdown("", elem_id="confidence")
|
|
|
|
| 215 |
"""
|
| 216 |
)
|
| 217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
# Connect button
|
| 220 |
classify_btn.click(
|