Skip to content

AI Innovation Bounty - Challenge 2 : Automatic Review Response Bot

Notifications You must be signed in to change notification settings

siddevkota/Challenge_2

Repository files navigation

Response Bot API

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.

API Endpoint

  • Endpoint: /test
  • Method: GET

Request Parameters

  • desc: Product description (string)
  • review: User's review (string)

Response

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

How to run the api

uvicorn api:app --reload

How to run the streamlit app

streamlit run main.py

Pip installs

pip install fastapi openai streamlit requests

About

AI Innovation Bounty - Challenge 2 : Automatic Review Response Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages