This project is a React-based web application that uses a small language model to generate content based on user prompts. It features a clean, Material-UI styled interface and communicates with an AI API to produce text content.
- User-friendly interface for entering prompts
- AI-powered content generation
- Real-time loading feedback
- Error handling with user notifications
Before you begin, ensure you have met the following requirements:
- Node.js (v14 or later recommended)
- Yarn package manager
To install the Content Creator, follow these steps:
- Clone the repository:
git clone https://github.com/labKnowledge/SMLLM.git - Navigate to the project directory:
cd SMLLM - Install the dependencies:
yarn install
To use the Content Creator, follow these steps:
- Start the development server:
yarn start - Open your web browser and navigate to
http://localhost:5173(or the port specified by your React setup). - Enter a prompt in the text field and click "Generate Post" to create AI-generated content.
The main components of this project are:
ContentCreator.tsx: The main React component that handles the UI and user interactions.ai_api.ts: Contains the API call function to communicate with the AI service.
The project uses an external AI API for content generation. The API endpoint is configured in ai_api.ts. Make sure the API endpoint is correct and accessible.
You can customize the appearance of the application by modifying the styled components in ContentCreator.tsx. The project uses Material-UI, so you can refer to the Material-UI documentation for more styling options.
Contributions to the Content Creator project are welcome. Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
If you have any questions or feedback, please open an issue in the GitHub repository.