Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,8 +69,6 @@ def inference(audio, prompt, model, temperature, latest):
|
|
| 69 |
|
| 70 |
for i in range(5):
|
| 71 |
print("print1 ", response['choices'][i]['text'])
|
| 72 |
-
test1 = response['choices'][i]['text']
|
| 73 |
-
test2 = test1.split()
|
| 74 |
print("test2!!! ", test1)
|
| 75 |
temp.append(response['choices'][i]['text'])
|
| 76 |
print("print2: infers ", infers)
|
|
@@ -80,7 +78,7 @@ def inference(audio, prompt, model, temperature, latest):
|
|
| 80 |
#print("Infered type is: ", type(infered))
|
| 81 |
infers = list(map(lambda x: x.replace("\n", ""), temp))
|
| 82 |
#infered = list(map(lambda x: x.split(','), infers))
|
| 83 |
-
|
| 84 |
|
| 85 |
|
| 86 |
res = []
|
|
|
|
| 69 |
|
| 70 |
for i in range(5):
|
| 71 |
print("print1 ", response['choices'][i]['text'])
|
|
|
|
|
|
|
| 72 |
print("test2!!! ", test1)
|
| 73 |
temp.append(response['choices'][i]['text'])
|
| 74 |
print("print2: infers ", infers)
|
|
|
|
| 78 |
#print("Infered type is: ", type(infered))
|
| 79 |
infers = list(map(lambda x: x.replace("\n", ""), temp))
|
| 80 |
#infered = list(map(lambda x: x.split(','), infers))
|
| 81 |
+
|
| 82 |
|
| 83 |
|
| 84 |
res = []
|