EMaghakyan
commited on
Commit
•
b30d192
1
Parent(s):
17063fb
Removed testing code
Browse files- test_handler.py +0 -22
test_handler.py
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
from handler import EndpointHandler
|
2 |
-
|
3 |
-
# init handler
|
4 |
-
my_handler = EndpointHandler()
|
5 |
-
|
6 |
-
# prepare sample payload
|
7 |
-
non_holiday_payload = {
|
8 |
-
"inputs": "I am quite excited how this will turn out",
|
9 |
-
"parameters": {"mode": "text"},
|
10 |
-
}
|
11 |
-
|
12 |
-
# test the handler
|
13 |
-
non_holiday_pred = my_handler(non_holiday_payload)
|
14 |
-
print(non_holiday_pred)
|
15 |
-
|
16 |
-
non_holiday_payload = {
|
17 |
-
"inputs": "https://image.momoxfashion.com/Marc-O-Polo-i402d2w-0-detail",
|
18 |
-
"parameters": {"mode": "image"},
|
19 |
-
}
|
20 |
-
|
21 |
-
non_holiday_pred = my_handler(non_holiday_payload)
|
22 |
-
print(non_holiday_pred)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|