BioGeek commited on
Commit
eca3424
·
1 Parent(s): 856ffba

build: add allowed_paths to demo.launch

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -843,5 +843,5 @@ if __name__ == "__main__":
843
  # Set server_name="0.0.0.0" to allow access from network if needed
844
  # demo.launch(server_name="0.0.0.0", server_port=7860)
845
  # For Hugging Face Spaces, just demo.launch() is usually sufficient
846
- demo.launch(debug=True, show_error=True)
847
  # demo.launch(share=True) # For local testing with public URL
 
843
  # Set server_name="0.0.0.0" to allow access from network if needed
844
  # demo.launch(server_name="0.0.0.0", server_port=7860)
845
  # For Hugging Face Spaces, just demo.launch() is usually sufficient
846
+ demo.launch(debug=True, show_error=True, allowed_paths=['assets/instanovo.png', 'assets/sample_spectra.mgf'])
847
  # demo.launch(share=True) # For local testing with public URL