nizar-sayad commited on
Commit
ed79aed
1 Parent(s): 3625af8

Created test.py and .gitignore

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. test.py +11 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ myenv3
test.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from handler import EndpointHandler
2
+
3
+ # init handler
4
+ my_handler = EndpointHandler(path=".")
5
+
6
+ # prepare sample payload
7
+ test_payload = {"gen_outputs_no_input_decoded": ["It was so scary.","I couldn't believe it.", "I started running."]}
8
+ # test the handler
9
+ test_pred=my_handler(test_payload)
10
+ # show results
11
+ print(test_pred)