update streamlit

This commit is contained in:
zachary62 2025-05-25 19:56:11 -04:00
parent 966ced9dd1
commit a01841b67a
4 changed files with 7 additions and 25 deletions

View File

@ -87,7 +87,7 @@ From there, it's easy to implement popular design patterns like ([Multi-](https:
| [Code Generator](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-code-generator) | ★☆☆ <sup>*Beginner*</sup> | Generate test cases, implement solutions, and iteratively improve code | | [Code Generator](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-code-generator) | ★☆☆ <sup>*Beginner*</sup> | Generate test cases, implement solutions, and iteratively improve code |
| [MCP](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-mcp) | ★☆☆ <sup>*Beginner*</sup> | Agent using Model Context Protocol for numerical operations | | [MCP](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-mcp) | ★☆☆ <sup>*Beginner*</sup> | Agent using Model Context Protocol for numerical operations |
| [A2A](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-a2a) | ★☆☆ <sup>*Beginner*</sup> | Agent wrapped with A2A protocol for inter-agent communication | | [A2A](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-a2a) | ★☆☆ <sup>*Beginner*</sup> | Agent wrapped with A2A protocol for inter-agent communication |
| [Streamlit HITL](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-streamlit-hitl) | ★☆☆ <sup>*Beginner*</sup> | Streamlit app for human-in-the-loop review | | [Streamlit HITL](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-streamlit-hitl) | ★☆☆ <sup>*Beginner*</sup> | Streamlit app for human-in-the-loop image generation |
| [FastAPI HITL](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-fastapi-hitl) | ★☆☆ <sup>*Beginner*</sup> | FastAPI app for async human review loop with SSE | | [FastAPI HITL](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-fastapi-hitl) | ★☆☆ <sup>*Beginner*</sup> | FastAPI app for async human review loop with SSE |
| [Voice Chat](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-voice-chat) | ★☆☆ <sup>*Beginner*</sup> | An interactive voice chat application with VAD, STT, LLM, and TTS. | | [Voice Chat](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-voice-chat) | ★☆☆ <sup>*Beginner*</sup> | An interactive voice chat application with VAD, STT, LLM, and TTS. |

View File

@ -2,6 +2,12 @@
Human-in-the-Loop (HITL) image generation application using PocketFlow and Streamlit. Enter text prompts, generate images with OpenAI, and approve/regenerate results. Human-in-the-Loop (HITL) image generation application using PocketFlow and Streamlit. Enter text prompts, generate images with OpenAI, and approve/regenerate results.
<p align="center">
<img
src="./assets/banner.png" width="800"
/>
</p>
## Features ## Features
- **Image Generation:** Uses OpenAI's `gpt-image-1` model to generate images from text prompts - **Image Generation:** Uses OpenAI's `gpt-image-1` model to generate images from text prompts

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -1,24 +0,0 @@
import time
def process_task(task_input: str) -> str:
"""
Simulates processing the input, potentially calling an LLM.
Replace this with your actual task logic.
"""
print(f"Processing task: {task_input[:50]}...")
result = f"Dummy rephrased text for the following input: {task_input}"
# Simulate some work
time.sleep(2)
return result
if __name__ == "__main__":
test_input = "This is a test input for the processing task."
print(f"Input: {test_input}")
output = process_task(test_input)
print(f"Output: {output}")
# We don't need a separate utils/call_llm.py for this minimal example,
# but you would add it here if ProcessNode used an LLM.