txt2sql_poc_v1 / api-usage.txt
gbarone77's picture
Create api-usage.txt
8fa4e19
raw
history blame
393 Bytes
API usage:
Request:
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
Response
{"data":["SELECT year FROM table WHERE city = rome"],"is_generating":false,"duration":0.8874316215515137,"average_duration":0.8874316215515137