Spaces:
Running
Running
Abid Ali Awan
commited on
Commit
·
e759c43
1
Parent(s):
12e2867
feat: Add example datasets and integrate them into the Gradio interface.
Browse files- README.md +13 -0
- app.py +11 -0
- data/heart.csv +3 -0
- data/housing.csv +3 -0
README.md
CHANGED
|
@@ -34,6 +34,13 @@ This app uses:
|
|
| 34 |
|
| 35 |
## 🚀 Features
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
### ✅ 1. Natural Chat Interface
|
| 38 |
|
| 39 |
Chat like a normal assistant — ask questions, discuss data, clarify tasks.
|
|
@@ -112,6 +119,12 @@ The agent always displays a `<details>` block containing:
|
|
| 112 |
|
| 113 |
This keeps the main summary clean while still exposing full transparency.
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
|
| 117 |
## 📦 Installation
|
|
|
|
| 34 |
|
| 35 |
## 🚀 Features
|
| 36 |
|
| 37 |
+
### 📋 File Size Limits
|
| 38 |
+
|
| 39 |
+
* **Hard cap**: 10MB maximum file size
|
| 40 |
+
* **Soft cap**: 1.5MB recommended for optimal performance
|
| 41 |
+
* **Large file handling**: If a file exceeds the soft cap, training will automatically use only the top 10K rows for processing
|
| 42 |
+
* This optimization speeds up the training process and returns model IDs and responses faster
|
| 43 |
+
|
| 44 |
### ✅ 1. Natural Chat Interface
|
| 45 |
|
| 46 |
Chat like a normal assistant — ask questions, discuss data, clarify tasks.
|
|
|
|
| 119 |
|
| 120 |
This keeps the main summary clean while still exposing full transparency.
|
| 121 |
|
| 122 |
+
### Clickable Examples
|
| 123 |
+
|
| 124 |
+
* Pre-loaded examples for quick testing
|
| 125 |
+
* Triggers analysis, training, deployment, and auto-deployment
|
| 126 |
+
* Uses the included `data/heart.csv` and `data/housing.csv` dataset automatically
|
| 127 |
+
|
| 128 |
|
| 129 |
|
| 130 |
## 📦 Installation
|
app.py
CHANGED
|
@@ -456,6 +456,17 @@ with gr.Blocks(title="Streaming MLOps Agent") as demo:
|
|
| 456 |
outputs=[chatbot, msg],
|
| 457 |
)
|
| 458 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 459 |
if __name__ == "__main__":
|
| 460 |
demo.queue().launch(
|
| 461 |
theme=gr.themes.Soft(primary_hue="green", secondary_hue="blue"),
|
|
|
|
| 456 |
outputs=[chatbot, msg],
|
| 457 |
)
|
| 458 |
|
| 459 |
+
gr.Examples(
|
| 460 |
+
examples=[
|
| 461 |
+
["Analyze the dataset", os.path.join("data", "heart.csv")],
|
| 462 |
+
["Train the model", os.path.join("data", "heart.csv")],
|
| 463 |
+
["Deploy the model", os.path.join("data", "heart.csv")],
|
| 464 |
+
["Auto deploy the model using the dataset", os.path.join("data", "housing.csv")],
|
| 465 |
+
],
|
| 466 |
+
inputs=[msg, uploader],
|
| 467 |
+
label="Try an example",
|
| 468 |
+
)
|
| 469 |
+
|
| 470 |
if __name__ == "__main__":
|
| 471 |
demo.queue().launch(
|
| 472 |
theme=gr.themes.Soft(primary_hue="green", secondary_hue="blue"),
|
data/heart.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:948420b084d8a3a0ca42b8419fce9aee175879e43f8aedf712377899a67aa49b
|
| 3 |
+
size 35921
|
data/housing.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2382fadd49b76e0fbe0c168fa71381d892e56130a6c3b4a3dc14da4931dc2124
|
| 3 |
+
size 12435
|