dgjx commited on
Commit
b030295
·
verified ·
1 Parent(s): b2d9f7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -73,11 +73,12 @@ CREATE TABLE product_suppliers (
73
 
74
  demo = gr.Interface(
75
  fn=generate_sql,
 
 
76
  inputs=[
77
- gr.Markdown("## SQL Query Generator"),
78
- gr.Textbox(label="User Question", placeholder="请输入您的问题...", value=question),
79
- gr.Textbox(label="Instructions (可选)", placeholder="请输入额外说明...", value=instructions),
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
  )