zemuwen commited on
Commit
c33a2ae
·
verified ·
1 Parent(s): f961e86

Delete handler.py

Browse files
Files changed (1) hide show
  1. handler.py +0 -19
handler.py DELETED
@@ -1,19 +0,0 @@
1
- from handler import EndpointHandler
2
-
3
- # init handler
4
- my_handler = EndpointHandler(path=".")
5
-
6
- # prepare sample payload
7
- non_holiday_payload = {"inputs": "I am quite excited how this will turn out", "date": "2022-08-08"}
8
- holiday_payload = {"inputs": "Today is a though day", "date": "2022-07-04"}
9
-
10
- # test the handler
11
- non_holiday_pred=my_handler(non_holiday_payload)
12
- holiday_payload=my_handler(holiday_payload)
13
-
14
- # show results
15
- print("non_holiday_pred", non_holiday_pred)
16
- print("holiday_payload", holiday_payload)
17
-
18
- # non_holiday_pred [{'label': 'joy', 'score': 0.9985942244529724}]
19
- # holiday_payload [{'label': 'happy', 'score': 1}]