pocketflow/cookbook/pocketflow-streamlit-hitl
zachary62 516a52784e update streamlit hitl 2025-05-25 19:35:47 -04:00
..
docs update streamlit hitl 2025-05-25 19:35:47 -04:00
utils update streamlit hitl 2025-05-25 19:35:47 -04:00
README.md streamlit example 2025-05-13 00:07:47 -04:00
app.py update links 2025-05-13 11:14:12 -04:00
flow.py streamlit example 2025-05-13 00:07:47 -04:00
nodes.py streamlit example 2025-05-13 00:07:47 -04:00
requirements.txt streamlit example 2025-05-13 00:07:47 -04:00

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_state to manage the current stage of the workflow and to act as the shared data store for PocketFlow.
  • Iterative Feedback Loop: Allows users to reject processed output and resubmit, facilitating refinement.

How to Run

  1. Install Dependencies:

    pip install -r requirements.txt
    
  2. Run the Streamlit Application:

    streamlit run app.py
    
  3. Access the Web UI: Open the URL provided by Streamlit (usually http://localhost:8501).

Files