Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,6 +69,9 @@ def inference(audio, prompt, model, temperature, latest):
|
|
| 69 |
|
| 70 |
for i in range(5):
|
| 71 |
print("print1 ", response['choices'][i]['text'])
|
|
|
|
|
|
|
|
|
|
| 72 |
temp.append(response['choices'][i]['text'])
|
| 73 |
print("print2: infers ", infers)
|
| 74 |
print("print3: Responses ", response)
|
|
@@ -77,6 +80,8 @@ def inference(audio, prompt, model, temperature, latest):
|
|
| 77 |
#print("Infered type is: ", type(infered))
|
| 78 |
infers = list(map(lambda x: x.replace("\n", ""), temp))
|
| 79 |
#infered = list(map(lambda x: x.split(','), infers))
|
|
|
|
|
|
|
| 80 |
|
| 81 |
res = []
|
| 82 |
|
|
|
|
| 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)
|
| 77 |
print("print3: Responses ", response)
|
|
|
|
| 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 |
+
if thing in some_list: some_list.remove(thing)
|
| 84 |
+
|
| 85 |
|
| 86 |
res = []
|
| 87 |
|