Spaces:
Runtime error
Runtime error
Upload resources.py
Browse files- resources.py +27 -0
resources.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pydantic import BaseModel
|
2 |
+
from typing import Optional
|
3 |
+
from typing import List
|
4 |
+
import time
|
5 |
+
|
6 |
+
class Lead_Labels (BaseModel):
|
7 |
+
company: str
|
8 |
+
team: List[str]
|
9 |
+
amount: int
|
10 |
+
duration: str
|
11 |
+
capacity: str
|
12 |
+
|
13 |
+
entity_labels = [
|
14 |
+
"team",
|
15 |
+
"developer",
|
16 |
+
"amount",
|
17 |
+
"duration",
|
18 |
+
"capacity",
|
19 |
+
"company"
|
20 |
+
]
|
21 |
+
|
22 |
+
def set_start () -> time:
|
23 |
+
return time.time()
|
24 |
+
|
25 |
+
def audit_elapsedtime(function: str, start: time) -> None:
|
26 |
+
end = time.time()
|
27 |
+
print(f"{function} Elapsed time: {end-start}")
|