Spaces:
Running
Running
"added example cache"
Browse files- .gitignore +8 -3
- app.py +3 -0
.gitignore
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
3 |
*.pyc
|
4 |
-
*__pycache__
|
|
|
|
|
|
|
|
1 |
+
*/.ipynb_checkpoints
|
2 |
+
*/.DS_Store
|
3 |
+
*/.vscode
|
4 |
+
*/.pytest_cache
|
5 |
*.pyc
|
6 |
+
*__pycache__
|
7 |
+
|
8 |
+
*/partially_signed_agreement_1.png
|
9 |
+
gradio_cached_examples/
|
app.py
CHANGED
@@ -138,7 +138,10 @@ with gr.Blocks() as demo:
|
|
138 |
|
139 |
examples = gr.Examples(
|
140 |
examples=load_examples(),
|
|
|
141 |
inputs=input_image,
|
|
|
|
|
142 |
)
|
143 |
|
144 |
process_btn.click(
|
|
|
138 |
|
139 |
examples = gr.Examples(
|
140 |
examples=load_examples(),
|
141 |
+
fn=process_image,
|
142 |
inputs=input_image,
|
143 |
+
outputs=[output_image, status_box, signature_crops],
|
144 |
+
cache_examples=True,
|
145 |
)
|
146 |
|
147 |
process_btn.click(
|