Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,11 +73,12 @@ CREATE TABLE product_suppliers (
|
|
| 73 |
|
| 74 |
demo = gr.Interface(
|
| 75 |
fn=generate_sql,
|
|
|
|
|
|
|
| 76 |
inputs=[
|
| 77 |
-
gr.
|
| 78 |
-
gr.Textbox(label="
|
| 79 |
-
gr.Textbox(label="
|
| 80 |
-
gr.Textbox(label="Create Table Statements", placeholder="请输入DDL语句...", value=schema),
|
| 81 |
],
|
| 82 |
outputs="text",
|
| 83 |
)
|
|
|
|
| 73 |
|
| 74 |
demo = gr.Interface(
|
| 75 |
fn=generate_sql,
|
| 76 |
+
title="SQLCoder-8b",
|
| 77 |
+
description="Defog's SQLCoder-8B is a state of the art-models for generating SQL queries from natural language. "
|
| 78 |
inputs=[
|
| 79 |
+
gr.Textbox(label="User Question", placeholder="Enter your question here...", value=question),
|
| 80 |
+
gr.Textbox(label="Instructions (optional)", placeholder="Enter any additional instructions here...", value=instructions),
|
| 81 |
+
gr.Textbox(label="Create Table Statements", placeholder="Enter DDL statements here...", value=schema),
|
|
|
|
| 82 |
],
|
| 83 |
outputs="text",
|
| 84 |
)
|