Spaces:
Sleeping
Sleeping
Johannes
commited on
Commit
·
df60fb6
1
Parent(s):
7b065dc
add big models back in
Browse files- app.py +1 -1
- example_strings.py +6 -3
app.py
CHANGED
@@ -50,7 +50,7 @@ iface = gr.Interface(
|
|
50 |
inputs=[gr.Text(label="Table schemas", placeholder="Insert your table schemas here"),
|
51 |
gr.Text(label="Specify Task", value="Using valid SQLite, answer the following questions for the tables provided above."),
|
52 |
gr.Text(label="Prompt", placeholder="Put your natural language prompt here"),
|
53 |
-
|
54 |
],
|
55 |
outputs="text",
|
56 |
examples=[example1, example2, example3])
|
|
|
50 |
inputs=[gr.Text(label="Table schemas", placeholder="Insert your table schemas here"),
|
51 |
gr.Text(label="Specify Task", value="Using valid SQLite, answer the following questions for the tables provided above."),
|
52 |
gr.Text(label="Prompt", placeholder="Put your natural language prompt here"),
|
53 |
+
gr.Dropdown(["nsql-6B", "nsql-2B", "nsql-350M"], value="nsql-6B")
|
54 |
],
|
55 |
outputs="text",
|
56 |
examples=[example1, example2, example3])
|
example_strings.py
CHANGED
@@ -31,7 +31,8 @@ CREATE TABLE singer_in_concert (
|
|
31 |
singer_id text
|
32 |
)""",
|
33 |
"Using valid SQLite, answer the following questions for the tables provided above.",
|
34 |
-
"What is the maximum, the average, and the minimum capacity of stadiums ?"
|
|
|
35 |
|
36 |
example2 = ["""CREATE TABLE stadium (
|
37 |
stadium_id number,
|
@@ -40,7 +41,8 @@ example2 = ["""CREATE TABLE stadium (
|
|
40 |
capacity number,
|
41 |
)""",
|
42 |
"Using valid SQLite, answer the following questions for the tables provided above.",
|
43 |
-
"how many stadiums in total?"
|
|
|
44 |
|
45 |
example3 = ["""CREATE TABLE work_orders (
|
46 |
ID NUMBER,
|
@@ -53,4 +55,5 @@ example3 = ["""CREATE TABLE work_orders (
|
|
53 |
COUNTRY_NAME TEXT,
|
54 |
)""",
|
55 |
"Using valid SQLite, answer the following questions for the tables provided above.",
|
56 |
-
"how many work orders are open?"
|
|
|
|
31 |
singer_id text
|
32 |
)""",
|
33 |
"Using valid SQLite, answer the following questions for the tables provided above.",
|
34 |
+
"What is the maximum, the average, and the minimum capacity of stadiums ?",
|
35 |
+
"nsql-350M"]
|
36 |
|
37 |
example2 = ["""CREATE TABLE stadium (
|
38 |
stadium_id number,
|
|
|
41 |
capacity number,
|
42 |
)""",
|
43 |
"Using valid SQLite, answer the following questions for the tables provided above.",
|
44 |
+
"how many stadiums in total?",
|
45 |
+
"nsql-350M"]
|
46 |
|
47 |
example3 = ["""CREATE TABLE work_orders (
|
48 |
ID NUMBER,
|
|
|
55 |
COUNTRY_NAME TEXT,
|
56 |
)""",
|
57 |
"Using valid SQLite, answer the following questions for the tables provided above.",
|
58 |
+
"how many work orders are open?",
|
59 |
+
"nsql-350M"]
|