pgurazada1 commited on
Commit
fce82e1
·
1 Parent(s): 7f82c86

added test

Browse files
Files changed (1) hide show
  1. test.py +12 -0
test.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+
3
+ root_url = "https://pgurazada1-dataframe-agent-docker.hf.space/"
4
+ predict_url = root_url + "/v1/input"
5
+
6
+ sample_input = "How many customers do we have?"
7
+
8
+ response = requests.post(predict_url, data=sample_input)
9
+
10
+ response.status_code
11
+
12
+ response.json()