This API demonstration, developed using FastAPI, serves as a Review Response Bot. It takes a product description and user-generated reviews and provides responses based on the description. It uses the OpenAI GPT-3 model to generate custom responses for the reviews. The API is intended for applications that involve responding to user reviews.
Do not forget to replace YOUR_OPENAI_API_KEY from api.py with your own OpenAI API key.
- Endpoint:
/test
- Method: GET
desc
: Product description (string)review
: User's review (string)
The API generates a response for the provided review and returns it in the JSON format:
{
"response": "Generated review response content"
}
The review response bot's api application is shown through streamlit app
uvicorn api:app --reload
streamlit run main.py
pip install fastapi openai streamlit requests