We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca6cf15 commit 4af6007Copy full SHA for 4af6007
docs/guides/model_convert/convert_from_pytorch/tools/validate_api_difference.py
@@ -15,8 +15,7 @@
15
# 默认文件路径
16
DEFAULT_FILE_PATH = "/workspace/paddleDocs/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md"
17
18
-# 用户代理头,模拟浏览器访问
19
-USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
+USER_AGENT = ""
20
21
# 重试策略配置
22
RETRY_STRATEGY = Retry(
@@ -33,7 +32,6 @@ def create_session():
33
32
adapter = HTTPAdapter(max_retries=RETRY_STRATEGY)
34
session.mount("http://", adapter)
35
session.mount("https://", adapter)
36
- session.headers.update({"User-Agent": USER_AGENT})
37
return session
38
39
0 commit comments