ai-puppy commited on
Commit
52c3a29
Β·
1 Parent(s): 230ff5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
app.py CHANGED
@@ -261,12 +261,24 @@ with gr.Blocks(title="DataForge - AI CodeAct Agent") as demo:
261
  )
262
 
263
  gr.Markdown("---")
264
- gr.Markdown("## πŸ’‘ **Example Questions**")
265
  gr.Markdown("""
266
- **πŸ” Security:** "Find failed login attempts and suspicious IPs"
267
- **⚑ Performance:** "Identify slowest API endpoints and bottlenecks"
268
- **πŸ“Š Data:** "Analyze statistical patterns and outliers"
269
- **πŸ” General:** "Summarize key insights and anomalies"
 
 
 
 
 
 
 
 
 
 
 
 
270
  """)
271
 
272
  if __name__ == "__main__":
 
261
  )
262
 
263
  gr.Markdown("---")
264
+ gr.Markdown("## πŸ’‘ **Real CodeAct Use Cases - When LLMs Fail, Code Succeeds**")
265
  gr.Markdown("""
266
+ **πŸ”₯ Real Problem:** You have a 500MB server log file and want to ask: *"Which IP addresses made the most requests yesterday?"*
267
+
268
+ ❌ **Traditional LLM:** "File too large, please upload smaller chunks"
269
+ βœ… **DataForge CodeAct:** AI writes Python code with regex + Counter to process entire file β†’ Gets exact answer
270
+
271
+ **πŸ”₯ Real Problem:** You have a 2GB CSV with sales data and ask: *"How many orders were placed in each month of 2024?"*
272
+
273
+ ❌ **Traditional LLM:** Crashes on upload or hits token limits
274
+ βœ… **DataForge CodeAct:** AI writes pandas code to parse dates and count by month β†’ Simple monthly breakdown
275
+
276
+ **πŸ”₯ Real Problem:** You have 1GB of JSON API logs and ask: *"Find all 500 errors and group them by endpoint and time of day"*
277
+
278
+ ❌ **Traditional LLM:** "Cannot process this much data"
279
+ βœ… **DataForge CodeAct:** AI writes JSON parsing + datetime analysis code β†’ Complete error breakdown
280
+
281
+ **🎯 The Key:** Instead of sending your data to an LLM, the LLM writes code that processes your data locally!
282
  """)
283
 
284
  if __name__ == "__main__":