Umesh
commited on
Commit
·
c83337f
1
Parent(s):
211be8b
Fix for improved UI
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base")
|
|
| 9 |
parser = StrOutputParser()
|
| 10 |
|
| 11 |
def getting_prompt(txtmsg,spkmsg):
|
| 12 |
-
|
| 13 |
-
recog_text = pipe(spkmsg)
|
| 14 |
messages = [
|
| 15 |
SystemMessage(content=txtmsg),
|
| 16 |
HumanMessage(content=recog_text['text']),
|
|
|
|
| 9 |
parser = StrOutputParser()
|
| 10 |
|
| 11 |
def getting_prompt(txtmsg,spkmsg):
|
| 12 |
+
# print(spkmsg)
|
| 13 |
+
recog_text = pipe(spkmsg[1])
|
| 14 |
messages = [
|
| 15 |
SystemMessage(content=txtmsg),
|
| 16 |
HumanMessage(content=recog_text['text']),
|