Update app.py
Browse files
app.py
CHANGED
|
@@ -240,7 +240,9 @@ with gr.Blocks() as demo:
|
|
| 240 |
with gr.Row():
|
| 241 |
agent_btn = gr.Button("Run AI Agent (5 Insights + 5 Visualizations)")
|
| 242 |
insights_output = gr.Textbox(label="Insights from SmolAgent", lines=15)
|
| 243 |
-
visual_output = gr.Gallery(label="Generated Visualizations").style(grid=3, height="auto")
|
|
|
|
|
|
|
| 244 |
|
| 245 |
#agent_btn.click(fn=run_agent, inputs=df_output, outputs=insights_output)
|
| 246 |
agent_btn.click(fn=run_agent, inputs=df_output, outputs=[insights_output, visual_output])
|
|
|
|
| 240 |
with gr.Row():
|
| 241 |
agent_btn = gr.Button("Run AI Agent (5 Insights + 5 Visualizations)")
|
| 242 |
insights_output = gr.Textbox(label="Insights from SmolAgent", lines=15)
|
| 243 |
+
#visual_output = gr.Gallery(label="Generated Visualizations").style(grid=3, height="auto")
|
| 244 |
+
visual_output = gr.Gallery(label="Generated Visualizations", columns=[3], height=400)
|
| 245 |
+
|
| 246 |
|
| 247 |
#agent_btn.click(fn=run_agent, inputs=df_output, outputs=insights_output)
|
| 248 |
agent_btn.click(fn=run_agent, inputs=df_output, outputs=[insights_output, visual_output])
|