From ed36f8490eb3748f2424d854936cc6f816aeb486 Mon Sep 17 00:00:00 2001 From: Lysandre Debut Date: Mon, 30 Jun 2025 15:25:36 +0200 Subject: [PATCH] Licenses (#39127) * Licenses * Licenses --- src/transformers/commands/serving.py | 2 +- tests/commands/test_chat.py | 13 +++++++++++++ tests/commands/test_serving.py | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/transformers/commands/serving.py b/src/transformers/commands/serving.py index 2d0ec77f4b..9b886b2721 100644 --- a/src/transformers/commands/serving.py +++ b/src/transformers/commands/serving.py @@ -1,4 +1,4 @@ -# Copyright 2020 The HuggingFace Team. All rights reserved. +# Copyright 2025 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/commands/test_chat.py b/tests/commands/test_chat.py index b1b32d7cc3..6ba3413faf 100644 --- a/tests/commands/test_chat.py +++ b/tests/commands/test_chat.py @@ -1,3 +1,16 @@ +# Copyright 2025 The HuggingFace Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import os import tempfile import unittest diff --git a/tests/commands/test_serving.py b/tests/commands/test_serving.py index 4e2c545e0b..00fa4630e2 100644 --- a/tests/commands/test_serving.py +++ b/tests/commands/test_serving.py @@ -1,3 +1,16 @@ +# Copyright 2025 The HuggingFace Team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import unittest from unittest.mock import patch