Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
136 |
inputs=input_image,
|
137 |
outputs=[output_label, output_text, output_heatmap],
|
138 |
fn=predict,
|
139 |
-
cache_examples=True # Speeds up demo loading
|
|
|
|
|
140 |
)
|
141 |
|
142 |
# --- Create example files for the demo ---
|
|
|
136 |
inputs=input_image,
|
137 |
outputs=[output_label, output_text, output_heatmap],
|
138 |
fn=predict,
|
139 |
+
cache_examples=True, # Speeds up demo loading
|
140 |
+
# Add this line to grant permission for local files
|
141 |
+
allow_file_access=True
|
142 |
)
|
143 |
|
144 |
# --- Create example files for the demo ---
|