Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -127,12 +127,21 @@ def response(user_query):
|
|
127 |
|
128 |
return output
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
demo = gr.Interface(
|
132 |
fn=response,
|
133 |
inputs=gr.Textbox(label="Please provide the natural language query"),
|
134 |
outputs=gr.Textbox(label="SQL Query"),
|
135 |
-
title="SQL Query generator"
|
|
|
136 |
)
|
137 |
|
138 |
demo.launch(share="True")
|
|
|
127 |
|
128 |
return output
|
129 |
|
130 |
+
desc="""
|
131 |
+
Student Table:
|
132 |
+
Includes student details like ID, name, date of birth, email, phone, major, and year of enrollment.
|
133 |
+
Employee Table:
|
134 |
+
Stores employee details like ID, name, email, department, position, salary, and joining date.
|
135 |
+
Course Info Table:
|
136 |
+
Contains course details like ID, name, code, instructor ID, department, credits, and semester.
|
137 |
+
"""
|
138 |
|
139 |
demo = gr.Interface(
|
140 |
fn=response,
|
141 |
inputs=gr.Textbox(label="Please provide the natural language query"),
|
142 |
outputs=gr.Textbox(label="SQL Query"),
|
143 |
+
title="SQL Query generator",
|
144 |
+
description=desc
|
145 |
)
|
146 |
|
147 |
demo.launch(share="True")
|