Skip to content
Open
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
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from flask_cors import CORS
from flask_restx import Api

from app.utils.logger import requests_logger,logger
from app.utils.logger import requests_logger

from app.routes import register_routes

Expand Down
2 changes: 0 additions & 2 deletions app/models/whisper_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""
This module defines the WhisperTranscript class, which is a PyTorch model for transcribing audio files using the OpenAI Whisper model.
"""
import torch
import torch.nn as nn

from transformers import pipeline
Expand Down
2 changes: 1 addition & 1 deletion app/routes/audio_transcript_sentiment_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def post(self):
}, 200


except Exception as e:
except Exception:
return {
'status': 'error',
'error': 'An unexpected error occurred while processing the request.', # Generic error message
Expand Down
1 change: 0 additions & 1 deletion app/services/audio_transcription_sentiment_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def process(self, url: str, start_time_ms: int, end_time_ms: int = None, user_id

# Step(3) Perform sentiment [Per chunk :D]
for chunk in chunks:
timestamp = chunk['timestamp']
text = chunk['text']

sentiment_result = self.sentiment_service.analyze(text)
Expand Down