CoolFace
Apppublic

ArchCoder/llm-excel-plotter-agent

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

LLM Excel Plotter Agent

An intelligent Hugging Face Space that uses Large Language Models to process Excel data, generate meaningful charts, and provide automated analysis.

Features

  • โ€”๐Ÿ“ˆ Intelligent Chart Generation: Uses Qwen2.5 and BART models to understand data and generate appropriate visualizations
  • โ€”๐Ÿค– LLM-Powered Analysis: Leverages state-of-the-art language models for data interpretation
  • โ€”๐Ÿ“Š Multiple Chart Types: Supports line charts, bar charts, scatter plots, and more
  • โ€”๐ŸŽจ Interactive UI: Clean, modern interface built with React and Plotly.js
  • โ€”๐Ÿ“ File Upload: Process CSV files and get instant analysis

Models & APIs

Local Models (Free)

  • โ€”Qwen2.5-1.5B-Instruct: Local inference for data analysis
  • โ€”BART Fine-tuned: Custom model for structured text generation

Supported External APIs (Optional)

  • โ€”Gemini 2.0 Flash: Add GEMINI_API_KEY environment variable
  • โ€”Grok-3 Mini: Add GROK_API_KEY environment variable

Usage

  1. 1.Upload a CSV file containing your data
  2. 2.Ask the chatbot to analyze or visualize specific aspects
  3. 3.View generated charts and insights
  4. 4.Export results or ask follow-up questions

Deployment

Built with:

  • โ€”Backend: Flask (Python 3.10)
  • โ€”Frontend: React 18.3.1
  • โ€”LLM Integration: Transformers, HuggingFace Inference
  • โ€”Data Processing: Pandas, Scikit-learn

Deploy to Hugging Face Spaces with Docker support enabled.

Health And Wake-Up Endpoint

To support cold-start recovery on free-tier Hugging Face Spaces, this backend exposes:

  • โ€”GET /health

This endpoint is lightweight and intended for:

  • โ€”frontend wake-up checks before user requests,
  • โ€”retry logic diagnostics,
  • โ€”optional cron-based warm-up pings.

Example:

bash
curl https://<your-space>.hf.space/health

Typical response:

json
{
	"status": "ok",
	"service": "llm-excel-plotter-agent",
	"uptime_seconds": 12.34,
	"timestamp": 1700000000
}

For more information, visit the project repository