Spaces:
Runtime error
Runtime error
Johannes commited on
Commit ·
832b5f4
1
Parent(s): 8c6583b
change available models
Browse filesFiles changed (2)
- app.py+2-2
- example_strings.py+1-1
36 unmodified lines373839404142436 unmodified lines5051525354555636 unmodified lines- [nsql-2B](https://huggingface.co/NumbersStation/nsql-2B)- [nsql-350M]((https://huggingface.co/NumbersStation/nsql-350M))This demo let's you choose which one you want to use and provides the three examples you can also find in their model cards.In general you should first provide the table schemas of the tables you have questions about and then prompt it with a natural language question.The model will then generate a SQL query that you can run against your database.6 unmodified linesinputs=[gr.Text(label="Table schemas", placeholder="Insert your table schemas here"),gr.Text(label="Specify Task", value="Using valid SQLite, answer the following questions for the tables provided above."),gr.Text(label="Prompt", placeholder="Put your natural language prompt here"),gr.Dropdown(["nsql-6B", "nsql-2B", "nsql-350M"], value="nsql-6B")],outputs="text",examples=[example1, example2, example3])36 unmodified lines373839404142436 unmodified lines5051525354555636 unmodified lines- [nsql-2B](https://huggingface.co/NumbersStation/nsql-2B)- [nsql-350M]((https://huggingface.co/NumbersStation/nsql-350M))This demo let's you choose from the 6B and 350M model and provides the three examples you can also find in their model cards.In general you should first provide the table schemas of the tables you have questions about and then prompt it with a natural language question.The model will then generate a SQL query that you can run against your database.6 unmodified linesinputs=[gr.Text(label="Table schemas", placeholder="Insert your table schemas here"),gr.Text(label="Specify Task", value="Using valid SQLite, answer the following questions for the tables provided above."),gr.Text(label="Prompt", placeholder="Put your natural language prompt here"),gr.Dropdown(["nsql-6B", "nsql-350M"], value="nsql-6B")],outputs="text",examples=[example1, example2, example3])
41 unmodified lines4243444546474841 unmodified lines)""","Using valid SQLite, answer the following questions for the tables provided above.","how many stadiums in total?","nsql-2B"]example3 = ["""CREATE TABLE work_orders (ID NUMBER,41 unmodified lines4243444546474841 unmodified lines)""","Using valid SQLite, answer the following questions for the tables provided above.","how many stadiums in total?","nsql-6B"]example3 = ["""CREATE TABLE work_orders (ID NUMBER,
app.py+2-2
example_strings.py+1-1