Create readme.md
Browse files
readme.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Smol-Private-Spreadsheet
|
| 3 |
+
emoji: 🤗
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: yellow
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.32.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
short_description: A spreadsheet-first Gradio component that calls SmolLM 2 with `=SMOLLM()`, including optional cell or range context.
|
| 12 |
+
video_url: TBD
|
| 13 |
+
tags:
|
| 14 |
+
- custom-components-for-agents-track # 🧩 Track 2
|
| 15 |
+
- track2
|
| 16 |
+
- gradio
|
| 17 |
+
- smolllm
|
| 18 |
+
- spreadsheet
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Smol-Private-Spreadsheet ✨
|
| 22 |
+
|
| 23 |
+
A tiny proof-of-concept that embeds **SmolLM 2** directly inside a sheet.
|
| 24 |
+
Type a formula, get an answer—no extra UI required.
|
| 25 |
+
|
| 26 |
+
## Why it matters
|
| 27 |
+
|
| 28 |
+
| Feature | What it does |
|
| 29 |
+
|---------|--------------|
|
| 30 |
+
| **`=SMOLLM("prompt")`** | Asks the model and returns the reply inside the cell. |
|
| 31 |
+
| **Context support** | `=SMOLLM("prompt", A1)` or a range `A1:C3` to pass extra context. |
|
| 32 |
+
| **GPU / WebGPU ready** | Runs locally inside the Space; zero external API calls. |
|
| 33 |
+
| **The first step towards viewing the power of UI abstraction with SmolLM** | Integrating a WebGPU app with Gradio is still very complicated, I'm hoping that this use case can show the power of privately hosted Small Langauage Models and help me reach people to collaborate on a WebGPU custom component in gradio! |
|
| 34 |
+
|
| 35 |
+
## Quick start
|
| 36 |
+
|
| 37 |
+
1. **Launch** the Space.
|
| 38 |
+
2. In any empty cell, enter:
|
| 39 |
+
|
| 40 |
+
```text
|
| 41 |
+
=SMOLLM("Summarise A1:C3 in one sentence", A1:C3)
|