Skip to content

Commit c5ae3b5

Browse files
committed
bugfix: added blocked paths to protect sensitive files
1 parent 4a8fb8d commit c5ae3b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: ChuanhuChatbot.py

+1
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ def create_greeting(request: gr.Request):
822822
setup_wizard()
823823
demo.queue(concurrency_count=CONCURRENT_COUNT).launch(
824824
allowed_paths=["history", "web_assets"],
825+
blocked_paths=["config.json", "files", "models", "lora", "modules"],
825826
server_name=server_name,
826827
server_port=server_port,
827828
share=share,

0 commit comments

Comments
 (0)