|
|
||
|---|---|---|
| .. | ||
| utils | ||
| README.md | ||
| app.py | ||
| flow.py | ||
| nodes.py | ||
| requirements.txt | ||
README.md
PocketFlow Streamlit Human-in-the-Loop (HITL) Application
Minimal Human-in-the-Loop (HITL) web application using PocketFlow and Streamlit. Submit text, review processed output, and approve/reject.
Features
- Streamlit UI: Simple, interactive interface for submitting tasks and providing feedback, built entirely in Python.
- PocketFlow Workflow: Manages distinct processing stages (initial processing, finalization) using synchronous PocketFlow
Flows. - Session State Management: Utilizes Streamlit's
st.session_stateto manage the current stage of the workflow and to act as theshareddata store for PocketFlow. - Iterative Feedback Loop: Allows users to reject processed output and resubmit, facilitating refinement.
How to Run
-
Install Dependencies:
pip install -r requirements.txt -
Run the Streamlit Application:
streamlit run app.py -
Access the Web UI: Open the URL provided by Streamlit (usually
http://localhost:8501).
Files
app.py: Main Streamlit application logic and UI.nodes.py: PocketFlowNodedefinitions.flows.py: PocketFlowFlowconstruction.utils/process_task.py: Simulated task processing utility.requirements.txt: Project dependencies.README.md: This file.