charanhu commited on
Commit
1d7de89
·
1 Parent(s): dd8ff4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -27,11 +27,11 @@ def chatbot_app(system_prompt, user_prompt, temperature, max_length, min_length)
27
  iface = gr.Interface(
28
  fn=chatbot_app,
29
  inputs=[
30
- "text",
31
- "text", # Added a text box for the system prompt
32
  gr.Number(minimum=0.1, maximum=2.0, value=1.0, label="Temperature"),
33
- gr.Number(minimum=10, maximum=2048, value=10, label="Max Length"),
34
- gr.Number(minimum=1, maximum=2048, value=1, label="Min Length"),
35
  ],
36
  outputs="text",
37
  live=False,
 
27
  iface = gr.Interface(
28
  fn=chatbot_app,
29
  inputs=[
30
+ gr.Textbox(value="You are a helpful assistant. Your job is to convert given text into SQL query.", label="System Prompt"),
31
+ gr.Textbox(value="how many employees are there in CS department?", label="User Prompt"),
32
  gr.Number(minimum=0.1, maximum=2.0, value=1.0, label="Temperature"),
33
+ gr.Number(minimum=0, maximum=2048, value=128, label="Max Length"),
34
+ gr.Number(minimum=0, maximum=2048, value=1, label="Min Length"),
35
  ],
36
  outputs="text",
37
  live=False,