Skip to content

Commit

Permalink
bugfix: added blocked paths to protect sensitive files
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Mar 10, 2024
1 parent 4a8fb8d commit c5ae3b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ChuanhuChatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ def create_greeting(request: gr.Request):
setup_wizard()
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
allowed_paths=["history", "web_assets"],
blocked_paths=["config.json", "files", "models", "lora", "modules"],
server_name=server_name,
server_port=server_port,
share=share,
Expand Down

0 comments on commit c5ae3b5

Please sign in to comment.