Spaces:
Paused
Paused
Update app.py
Browse files193 unmodified lines194195196197198199200201202203204205386 unmodified lines592593594595596597598193 unmodified linesraw_output = agent.run("""You are a data analysis agent. Output in JSON only. Follow these instructions EXACTLY without any deviation:1. Load the data from the given `source_file` ONLY. DO NOT create your OWN DATA.2. Analyze the data structure and generate up to 3 visualizations and 3 insights.3. Save all figures to `./figures` as PNG using matplotlib or seaborn.4. Use only authorized imports: `pandas`, `numpy`, `matplotlib.pyplot`, `seaborn`, `json`.5. DO NOT return any explanations, thoughts, or narration outside the final JSON block6. Run only 5 steps and return output in less than a minute.7. DO NOT include any natural language (e.g., "Thoughts:", "Code:", explanations).8. ONLY output a single, valid JSON block. No markdown or extra text.9. Output ONLY the following JSON code block format, exactly:{386 unmodified lineswith gr.Column():insights_output = gr.HTML(label="Insights from SmolAgent")visual_output = gr.Gallery(label="Visualizations (Auto-generated by Agent)", columns=2)agent_btn = gr.Button("Run AI Agent (5 Insights + 5 Visualizations)")with gr.Row():train_btn = gr.Button("Train Model with Optuna + WandB")193 unmodified lines194195196197198199200201202203204205386 unmodified lines592593594595596597598193 unmodified linesraw_output = agent.run("""You are a data analysis agent. Output in JSON only. Follow these instructions EXACTLY without any deviation:1. Load the data from the given `source_file` ONLY. DO NOT create your OWN DATA.2. Analyze the data and generate up to 3 visualizations and 3 insights.3. Save all figures to `./figures` as PNG using matplotlib or seaborn.4. Use only authorized imports: `pandas`, `numpy`, `matplotlib.pyplot`, `seaborn`, `json`.5. DO NOT return any explanations, thoughts, or narration outside the final JSON block6. Run only 5 steps and return output in less than a minute.7. ONLY include natural language as observation value or insight value.8. ONLY output a single, valid JSON block. No markdown or extra text.9. Output ONLY the following JSON code block format, exactly:{386 unmodified lineswith gr.Column():insights_output = gr.HTML(label="Insights from SmolAgent")visual_output = gr.Gallery(label="Visualizations (Auto-generated by Agent)", columns=2)agent_btn = gr.Button("Run AI Agent (3 Insights + 3 Visualizations)")with gr.Row():train_btn = gr.Button("Train Model with Optuna + WandB")
app.py+3-3