Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
"
|
32 |
gr.Number(minimum=0.1, maximum=2.0, value=1.0, label="Temperature"),
|
33 |
-
gr.Number(minimum=
|
34 |
-
gr.Number(minimum=
|
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,
|