Spaces:
Runtime error
Runtime error
EC2 Default User
commited on
Commit
•
458be33
1
Parent(s):
b820955
xxx
Browse files
app.py
CHANGED
@@ -138,7 +138,8 @@ def predict(input, history=[]):
|
|
138 |
def predict_text_only(input, history=[]):
|
139 |
history.append(input)
|
140 |
response = conversation.predict(input=input)
|
141 |
-
|
|
|
142 |
|
143 |
def transcribe_func(audio):
|
144 |
audio_file = open(audio, "rb")
|
|
|
138 |
def predict_text_only(input, history=[]):
|
139 |
history.append(input)
|
140 |
response = conversation.predict(input=input)
|
141 |
+
audio_file = "/tmp/fake.mp3"
|
142 |
+
return response, audio_file, history
|
143 |
|
144 |
def transcribe_func(audio):
|
145 |
audio_file = open(audio, "rb")
|