Fix f-string issues on python<3.12
This commit is contained in:
parent
132f9f3e6a
commit
329119b716
|
@ -33,7 +33,7 @@ limitations under the License.
|
|||
|
||||
🌐 **Support for any LLM**: it supports models hosted on the Hub loaded in their `transformers` version or through our inference API, but also models from OpenAI, Anthropic, and many more through our LiteLLM integration.
|
||||
|
||||
🧑💻 **First-class support for Code Agents**, i.e. agents that write their actions in code (as opposed to "agents being used to write code"), [read more here](tutorials/secure_code_execution).
|
||||
🧑💻 **First-class support for Code Agents**, i.e. agents that write their actions in code (as opposed to "agents being used to write code"), [read more here](https://huggingface.co/docs/smolagents/tutorials/secure_code_execution).
|
||||
|
||||
🤗 **Hub integrations**: you can share and load tools to/from the Hub, and more is to come!
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||
|
||||
[project]
|
||||
name = "smolagents"
|
||||
version = "0.1.0"
|
||||
version = "0.1.3"
|
||||
description = "🤗 smolagents: a barebones library for agents. Agents write python code to call tools or orchestrate other agents."
|
||||
authors = [
|
||||
{ name="Aymeric Roucher", email="aymeric@hf.co" }, { name="Thomas Wolf"},
|
||||
|
@ -12,8 +12,10 @@ authors = [
|
|||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"torch",
|
||||
"torchaudio",
|
||||
"torchvision",
|
||||
"transformers>=4.0.0",
|
||||
"pytest>=8.1.0",
|
||||
"requests>=2.32.3",
|
||||
"rich>=13.9.4",
|
||||
"pandas>=2.2.3",
|
||||
|
@ -24,12 +26,11 @@ dependencies = [
|
|||
"duckduckgo-search>=6.3.7",
|
||||
"python-dotenv>=1.0.1",
|
||||
"e2b-code-interpreter>=1.0.3",
|
||||
"torch>=2.5.1",
|
||||
"litellm>=1.55.10",
|
||||
"torchvision>=0.20.1",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = [
|
||||
"pytest>=8.1.0",
|
||||
"gradio-tools"
|
||||
]
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
transformers>=4.0.0
|
||||
pytest>=8.1.0
|
||||
requests>=2.32.3
|
||||
rich>=13.9.4
|
||||
pandas>=2.2.3
|
||||
jinja2>=3.1.4
|
||||
pillow>=11.0.0
|
||||
markdownify>=0.14.1
|
||||
gradio>=5.8.0
|
||||
duckduckgo-search>=6.3.7
|
||||
python-dotenv>=1.0.1
|
||||
ipykernel>=6.29.5
|
|
@ -14,7 +14,7 @@
|
|||
# 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.
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "0.1.3"
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
|
|
@ -473,7 +473,7 @@ You have been provided with these additional arguments, that you can access usin
|
|||
Panel(
|
||||
f"\n[bold]{self.task.strip()}\n",
|
||||
title="[bold]New run",
|
||||
subtitle=f"{type(self.model).__name__} - {(self.model.model_id if hasattr(self.model, "model_id") else "")}",
|
||||
subtitle=f"{type(self.model).__name__} - {(self.model.model_id if hasattr(self.model, 'model_id') else '')}",
|
||||
border_style=YELLOW_HEX,
|
||||
subtitle_align="left",
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue