Skip to content

G2Tech-co/ai_scrib_assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Scribe Assistant

This code demonstrates the implementation of an AI Scribe Assistant. The system is designed to take the dialogue between two people or a monologue and transcribe it. This system also has an option to summarize this transcript and extract important information from the text for later use. In this version of the system, the name of the audio file stored in Google Cloud is obtained by our API. Then, the Google speech-to-text service transcribes the dialogue or the monologue in the mentioned audio file. After getting the transcribed text, GPT API is asked to summarize the transcription and extract specific information from the text with a specific prompt.
This system's API contains two routes: api/summarize: Gets the stored audio file and gives a summarized transcription and important information of a dialogue or monologue. api/transcribe: Gets the stored audio file and gives transcription of a dialogue or monologue.

please read README.md carefully to understand.

(back to top)

Usage

  1. Install requirements.
python -m venv .venv
.\.venv\Scripts\activate
pip install -m requirements.txt
  1. Run the following code script.
uvicorn main:app --host 0.0.0.0 --port 8000

How to Deploy

Change config in .env

cd your directory
.\.venv\Scripts\activate
uvicorn main:app --host 0.0.0.0 --port 8003

Rest API

uvicorn main:app
curl -i -X POST -H "Content-Type:application/json" \
   -d \ '{
  "file_name": "something" 
}' 'http://localhost:8000/api/summarize'
curl -i -X POST -H "Content-Type:application/json" \
   -d \ '{
  "file_name": "something" 
}' 'http://localhost:8000/api/transcribe'

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published