WordForge is a full-stack application that leverages the power of Google's LLM to generate creative and contextually relevant text.
The backend is built with FastAPI and uses a PostgreSQL database, ready for deployment on Render.
The frontend is an interactive Streamlit application designed for deployment on Streamlit Cloud.
- LLM-Powered Text Generation: Utilizes the LLM to generate high-quality, context-aware text based on user prompts.
- Robust Backend: A scalable and efficient backend built with FastAPI.
- Persistent Storage: Uses PostgreSQL to store generated content and user history.
- Interactive Frontend: A user-friendly interface created with Streamlit.
- Containerized Deployment: Includes a Dockerfile for easy deployment on Render.
- Cloud-Native: Optimized for cloud platforms like Render and Streamlit Cloud.
- Fork this repository.
- Create a new Web Service on Render.
- Connect your forked repository.
- Set the runtime to Docker.
- Set the root directory to
./backend. - Render will automatically detect your
Dockerfile. - Add environment variables:
DATABASE_URL: Your PostgreSQL connection string from Render’s Postgres addon.GEMINI_API_KEY: Your Gemini API key.
- Deploy!
- Fork this repository.
- Go to your Streamlit Cloud dashboard.
- Click “New app” and connect your forked repository.
- Set:
- Branch:
main - File path:
frontend/streamlit_app.py
- Branch:
- Add environment variables:
API_URL: The URL of your deployed FastAPI backend on Render.
- Deploy!
Once both the backend and frontend are deployed:
- Open your Streamlit app URL.
- Enter a text prompt.
- Chitralekha will generate a creative and contextually relevant text response for you.
- Backend: FastAPI
- Database: PostgreSQL
- Frontend: Streamlit
- LLM Model: Google Gemini
- Deployment: Render (backend) & Streamlit Cloud (frontend)
- Containerization: Docker
Crafted with ❤️ by PAWAN SHARMA.