pradeepodela commited on
Commit
dacc364
1 Parent(s): b916c3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -31
app.py CHANGED
@@ -1,34 +1,3 @@
1
- # import gradio as gr
2
- # import openai
3
-
4
- # from gtts import gTTS
5
- # import os
6
- # import subprocess
7
- # from pydub import AudioSegment
8
- # import math
9
- # from transformers import pipeline
10
- # openai.api_key = " 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"
11
- # messages = [
12
- # {"role": "system", "content": "You are a call center quality and assurance auditor. Your job is to review the call recording, and provide a very brief summary of the key information in the call including Operator’s Name, Call Category, Issue, and Solution. Also, you need to conduct sentiment analysis on the call and evaluate the customers satisfaction rate from 1 to 10 and provide a very short straight-to-the-point area of improvement to the operator."},
13
- # ]
14
-
15
- # def transcribe(audio):
16
- # global messages
17
-
18
- # segment_length = 60000
19
- # # Open the audio file
20
- # audio_file = AudioSegment.from_file(audio)
21
- # # Get the duration of the audio file in milliseconds
22
- # duration_ms = len(audio_file)
23
-
24
- # # Calculate the number of segments needed
25
- # num_segments = math.ceil(duration_ms / segment_length)
26
-
27
- # # Create an empty string to hold the concatenated text
28
- # all_text = ""
29
- # # Split the audio file into segments
30
-
31
- # for i in range(num_segments):
32
 
33
  import streamlit as st
34
  import openai
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
2
  import streamlit as st
3
  import openai