Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Showing summary in bullet points by Abhishek #67

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/src/components/DetailedTranscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ const DetailedTranscription = ({
</div>
<Card className="flex-1 w-full max-w-xs md:max-w-full xl:overflow-y-auto p-4 rounded-lg">
{showTranslation ? (
<Markdown>
{transcription.translation || "No translation available"}
<Markdown className="text-sm">
{"```"+transcription.translation+"```" || "No translation available"}
</Markdown>
) : (
<div className="flex flex-col gap-3">
Expand Down Expand Up @@ -173,7 +173,7 @@ const DetailedTranscription = ({
<div className="flex flex-1 flex-col max-h-full w-full gap-2 justify-start items-start xl:overflow-y-auto">
<h1 className="text-xl font-bold">Summary</h1>
<Card className="w-full flex-1 max-w-xs md:max-w-full xl:overflow-y-auto p-4 rounded-lg">
<Markdown>
<Markdown className="text-sm">
{transcription.summary || "No summary available"}
</Markdown>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion service/summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def summarize_using_openai(text):

#Using Ollama and llama3.2 model, summarize the English translation
def summarize_using_ollama(text):
response = ollama.generate(model= "llama3.2", prompt = "Provide highlights of conversion inbullet points without pretext:"+text+"\n \n")
response = ollama.generate(model= "llama3.2", prompt = text+"\n \n""Provide highlights above conversation in Markdown bullet points, ready for direct inclusion in a file, with no pretext, and formatted as a multiline string.")
summary = response["response"]
return summary