gbarone77 commited on
Commit
8fa4e19
·
1 Parent(s): a1eb554

Create api-usage.txt

Browse files
Files changed (1) hide show
  1. api-usage.txt +7 -0
api-usage.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ API usage:
2
+
3
+ Request:
4
+ curl -X POST -H 'Content-type: application/json' --data '{ "data": ["translate to SQL: When was Olympics held in Rome? table ID: ID, city, year, cost, attendees"] }' https://gbarone77-txt2sql-poc-v1.hf.space/run/predict
5
+
6
+ Response
7
+ {"data":["SELECT year FROM table WHERE city = rome"],"is_generating":false,"duration":0.8874316215515137,"average_duration":0.8874316215515137