Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.35.0
metadata
title: Trending Repos Analysis
emoji: 🐢
colorFrom: indigo
colorTo: red
sdk: gradio
sdk_version: 5.30.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Meta analysis about trends on trending repos
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
SQL Dataset Visualizer on Hugging Face Spaces
This application allows you to query Hugging Face datasets using SQL and visualize the results using Plotly.
Setup
- Install dependencies:
pip install -r requirements.txt
- Set up authentication:
- Get your Hugging Face token from https://huggingface.co/settings/tokens
- For local development, set the environment variable:
export HF_TOKEN=your_token_here
- For Hugging Face Spaces, add the token in the Space settings:
- Go to your Space settings
- Add a new secret with key
HF_TOKEN
and your token as the value
Run Locally
python app.py
Deploy to Hugging Face Spaces
- Push these files to a new Python Space on HF
- Add your HF_TOKEN in the Space settings
- The Space will automatically deploy with the token securely stored
Usage
- Enter your SQL query in the text box
- The results will be automatically visualized as a bar chart
- If there's an error in your query, it will be displayed as text
Security Note
- Never commit your HF_TOKEN to version control
- Always use environment variables or Space secrets for authentication
- The token is used to access private datasets and authenticate API requests