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
@@ -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.
<p align="center">
<img
src="./assets/banner.png" width="800"
/>
</p>
## Features
- **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

@@ -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.