Sunil Surendra Singh
commited on
Commit
•
cad607a
1
Parent(s):
b6d3b8f
removed caching for examples
Browse files
app.py
CHANGED
@@ -22,6 +22,8 @@ def create_interface():
|
|
22 |
**Please note that the model is trained on a small set of only 4,000 images hence it may not**
|
23 |
**be right all the time, but its fun to try out.**
|
24 |
Visit the [project's repo](https://github.com/sssingh/landmark-classification-tagging)
|
|
|
|
|
25 |
"""
|
26 |
with gr.Blocks(
|
27 |
title=app_config.title, theme=app_config.theme, css=app_config.css
|
@@ -73,7 +75,6 @@ def create_interface():
|
|
73 |
inputs=[img, k],
|
74 |
outputs=[landmarks, proba],
|
75 |
elem_id="examples",
|
76 |
-
cache_examples=True,
|
77 |
)
|
78 |
submit_btn.click(
|
79 |
fn=model.predict, inputs=[img, k], outputs=[landmarks, proba, plot]
|
|
|
22 |
**Please note that the model is trained on a small set of only 4,000 images hence it may not**
|
23 |
**be right all the time, but its fun to try out.**
|
24 |
Visit the [project's repo](https://github.com/sssingh/landmark-classification-tagging)
|
25 |
+
|
26 |
+
***Please be patient after clicking on example images, they are loaded from Git Large File System (LFS) and first time it may take few seconds to load***
|
27 |
"""
|
28 |
with gr.Blocks(
|
29 |
title=app_config.title, theme=app_config.theme, css=app_config.css
|
|
|
75 |
inputs=[img, k],
|
76 |
outputs=[landmarks, proba],
|
77 |
elem_id="examples",
|
|
|
78 |
)
|
79 |
submit_btn.click(
|
80 |
fn=model.predict, inputs=[img, k], outputs=[landmarks, proba, plot]
|