Spaces:
Sleeping
Sleeping
metadata
title: Streamlit FastAPI Orchestrator
emoji: 🚀
colorFrom: blue
colorTo: green
sdk: docker
app_port: 8501
pinned: false
Streamlit FastAPI Orchestrator
This Space demonstrates a Streamlit-based user interface that orchestrates three FastAPI microservices for text generation and API-based inferencing within a Docker container.
Features
- Interactive Streamlit UI on port 8501
- Orchestrates three FastAPI services via background processes
- API endpoints for synchronous and asynchronous text generation
- Modular startup via
start.shscript - Designed for Hugging Face Docker Spaces deployment
Usage
- Clone this repository or fork your own Space
- Add environment variables required by your services (e.g.,
GOOGLE_API_KEY) - Start all services via
start.sh - Interact using the Streamlit web interface
File Structure
app.py: Streamlit frontendsync_async_routing_API.py,sync_path_microservice.py,async_microservice.py: FastAPI backendsstart.sh: Container startup scriptrequirements.txt: Python dependenciesDockerfile: Container build recipe