Spaces:
No application file
No application file
Update my_function.py
Browse files- tools/my_function.py +0 -7
tools/my_function.py
CHANGED
@@ -4,13 +4,6 @@ from pydantic import BaseModel
|
|
4 |
from pydantic import Field
|
5 |
|
6 |
|
7 |
-
class MyModel(BaseModel):
|
8 |
-
"""My model."""
|
9 |
-
|
10 |
-
attr1: str = Field(..., description="The first attribute.")
|
11 |
-
attr2: int = Field(..., description="The second attribute.")
|
12 |
-
|
13 |
-
|
14 |
def my_function(arg1: str, arg2: int) -> int:
|
15 |
"""My function. Docstrings and arguments are useful for function calls.
|
16 |
|
|
|
4 |
from pydantic import Field
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
def my_function(arg1: str, arg2: int) -> int:
|
8 |
"""My function. Docstrings and arguments are useful for function calls.
|
9 |
|