Spaces:
Runtime error
Runtime error
Commit
·
24cf03b
1
Parent(s):
584ba32
correct defect of lastrequest
Browse files
app.py
CHANGED
@@ -1732,9 +1732,11 @@ global last_answer
|
|
1732 |
last_answer = ""
|
1733 |
|
1734 |
def SingleTalk(WavFile, history5):
|
|
|
1735 |
global last_answer
|
1736 |
global Filename_Chatbot
|
1737 |
ConvertText = speech_to_text_loc(WavFile)
|
|
|
1738 |
# ConvertText = speech_to_text(WavFile)
|
1739 |
history5 = history5 + [(ConvertText, None)]
|
1740 |
yield [None, None, history5]
|
|
|
1732 |
last_answer = ""
|
1733 |
|
1734 |
def SingleTalk(WavFile, history5):
|
1735 |
+
global last_request
|
1736 |
global last_answer
|
1737 |
global Filename_Chatbot
|
1738 |
ConvertText = speech_to_text_loc(WavFile)
|
1739 |
+
last_request = ConvertText
|
1740 |
# ConvertText = speech_to_text(WavFile)
|
1741 |
history5 = history5 + [(ConvertText, None)]
|
1742 |
yield [None, None, history5]
|