Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ with gr.Blocks() as demo:
|
|
| 114 |
with gr.Tab("Query on columns with mistral"):
|
| 115 |
dd_source_ask = gr.Dropdown(label="Source Column(s)", multiselect=True)
|
| 116 |
tb_destcol = gr.Textbox(label="Destination column label (e.g. Summary, ELI5, PAB)")
|
| 117 |
-
dd_prompt = gr.Dropdown(
|
| 118 |
rd_llm = gr.Radio(["Mistral", "Claude", "Groq"], label="Choose your LLM")
|
| 119 |
with gr.Accordion("Filters", open=False):
|
| 120 |
with gr.Row():
|
|
@@ -131,7 +131,7 @@ with gr.Blocks() as demo:
|
|
| 131 |
with gr.Tab("Charts Generation"):
|
| 132 |
with gr.Row():
|
| 133 |
dd_label1 = gr.Dropdown(label="Label 1", multiselect=False)
|
| 134 |
-
dd_label2 = gr.Dropdown(label="Label 2", multiselect=False)
|
| 135 |
btn_chart = gr.Button("Generate Bar Plot")
|
| 136 |
plt_figure = gr.Plot()
|
| 137 |
|
|
|
|
| 114 |
with gr.Tab("Query on columns with mistral"):
|
| 115 |
dd_source_ask = gr.Dropdown(label="Source Column(s)", multiselect=True)
|
| 116 |
tb_destcol = gr.Textbox(label="Destination column label (e.g. Summary, ELI5, PAB)")
|
| 117 |
+
dd_prompt = gr.Dropdown(label="Prompt", multiselect=False, allow_custom_value=True)
|
| 118 |
rd_llm = gr.Radio(["Mistral", "Claude", "Groq"], label="Choose your LLM")
|
| 119 |
with gr.Accordion("Filters", open=False):
|
| 120 |
with gr.Row():
|
|
|
|
| 131 |
with gr.Tab("Charts Generation"):
|
| 132 |
with gr.Row():
|
| 133 |
dd_label1 = gr.Dropdown(label="Label 1", multiselect=False)
|
| 134 |
+
dd_label2 = gr.Dropdown(label="Label 2", value="", multiselect=False)
|
| 135 |
btn_chart = gr.Button("Generate Bar Plot")
|
| 136 |
plt_figure = gr.Plot()
|
| 137 |
|