clockclock commited on
Commit
2b021a8
·
verified ·
1 Parent(s): 62764e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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 ---