How sanfla/deploy_streamlit works
This repository contains several independent small applications rather than one integrated product: a NutriNest health-advice chatbot, a sentiment-analysis API with a Streamlit client, a general Streamlit UI demo, and standalone search-timing programs. The chatbot routes prompts by topic, predicts sentiment, and selects a matching response. The API trains Naive Bayes and SVM models from local Twitter CSVs and reports predictions and validation accuracy. Edges reflect only relationships visible in the excerpts; the empty README and unsampled files provide no additional evidence.
Main entry points: api.py Prediction endpoint · chatbot.py Topic routing · tampilan.py Prediction UI · twitter_training.csv Twitter CSV data
Components 17
Health Chatbot
- Chat interface
chatbot.py - Topic routing
chatbot.py - Text preprocessing
chatbot.py - Topic classifiers
chatbot.py - Response selection
chatbot.py - Training and response data
Sentiment API
- Prediction UI
tampilan.py - Prediction endpoint
api.py - Twitter CSV data
twitter_training.csv - Comment preprocessing
api.py - NB and SVM models
api.py
Streamlit Demo
- Interactive UI demo
streamlit.py
Search Benchmarks
- Go search benchmark
aka.go - Python search benchmark
timeComplexity.py
Other components
- Chat user
- Demo user
- Benchmark user
Connections 17
- Chat user → Chat interface: enters prompt
chatbot.py - Chat interface → Topic routing: routes prompt
chatbot.py - Topic routing → Topic classifiers: selects model
chatbot.py - Topic routing → Response selection: selects responses
chatbot.py - Training and response data → Text preprocessing: supplies text
chatbot.py - Text preprocessing → Topic classifiers: prepares training text
chatbot.py - Topic classifiers → Response selection: predicts sentiment
chatbot.py - Response selection → Chat interface: returns reply
chatbot.py - Demo user → Prediction UI: submits text
tampilan.py - Prediction UI → Prediction endpoint: posts prediction
tampilan.py - Twitter CSV data → Prediction endpoint: loads CSVs
api.py - Prediction endpoint → Comment preprocessing: cleans comments
api.py - Comment preprocessing → NB and SVM models: provides features
api.py - Prediction endpoint → NB and SVM models: predicts and evaluates
api.py - Demo user → Interactive UI demo: uses controls
streamlit.py - Benchmark user → Go search benchmark: chooses search
aka.go - Benchmark user → Python search benchmark: chooses search
timeComplexity.py