Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,15 +76,16 @@ def inference(audio, state=""):
|
|
| 76 |
infers =[]
|
| 77 |
for i in range(5):
|
| 78 |
print("print1 ", response['choices'][i]['text'])
|
| 79 |
-
infers
|
| 80 |
print("print2: infers ", infers)
|
| 81 |
print("print3: Responses ", response)
|
| 82 |
print("Object type of response: ", type(response))
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
# result.text
|
| 86 |
#return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
| 87 |
-
return result.text, state,
|
| 88 |
|
| 89 |
|
| 90 |
|
|
|
|
| 76 |
infers =[]
|
| 77 |
for i in range(5):
|
| 78 |
print("print1 ", response['choices'][i]['text'])
|
| 79 |
+
infers.append(response['choices'][i]['text'])
|
| 80 |
print("print2: infers ", infers)
|
| 81 |
print("print3: Responses ", response)
|
| 82 |
print("Object type of response: ", type(response))
|
| 83 |
+
|
| 84 |
|
| 85 |
|
| 86 |
# result.text
|
| 87 |
#return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
| 88 |
+
return result.text, state, infers
|
| 89 |
|
| 90 |
|
| 91 |
|