Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,7 @@ def inference(audio, state=""):
|
|
| 83 |
n=5)
|
| 84 |
|
| 85 |
infers = []
|
|
|
|
| 86 |
for i in range(5):
|
| 87 |
print("print1 ", response['choices'][i]['text'])
|
| 88 |
infers.append(response['choices'][i]['text'])
|
|
@@ -94,6 +95,7 @@ def inference(audio, state=""):
|
|
| 94 |
|
| 95 |
|
| 96 |
infer = str(infers).split(",")
|
|
|
|
| 97 |
|
| 98 |
# result.text
|
| 99 |
#return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
|
|
|
| 83 |
n=5)
|
| 84 |
|
| 85 |
infers = []
|
| 86 |
+
infer=""
|
| 87 |
for i in range(5):
|
| 88 |
print("print1 ", response['choices'][i]['text'])
|
| 89 |
infers.append(response['choices'][i]['text'])
|
|
|
|
| 95 |
|
| 96 |
|
| 97 |
infer = str(infers).split(",")
|
| 98 |
+
print("Infer type is: ", type(infer))
|
| 99 |
|
| 100 |
# result.text
|
| 101 |
#return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|