Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,13 +81,17 @@ def inference(audio, state=""):
|
|
81 |
temperature=0.3,
|
82 |
max_tokens=8,
|
83 |
n=5)
|
84 |
-
|
|
|
85 |
for i in range(5):
|
86 |
print("print1 ", response['choices'][i]['text'])
|
87 |
-
|
88 |
print("print2: infers ", infers)
|
89 |
print("print3: Responses ", response)
|
90 |
print("Object type of response: ", type(response))
|
|
|
|
|
|
|
91 |
|
92 |
|
93 |
|
|
|
81 |
temperature=0.3,
|
82 |
max_tokens=8,
|
83 |
n=5)
|
84 |
+
|
85 |
+
infer = []
|
86 |
for i in range(5):
|
87 |
print("print1 ", response['choices'][i]['text'])
|
88 |
+
infer.append(response['choices'][i]['text'])
|
89 |
print("print2: infers ", infers)
|
90 |
print("print3: Responses ", response)
|
91 |
print("Object type of response: ", type(response))
|
92 |
+
infers = len(
|
93 |
+
[word for word in sentence.split()]
|
94 |
+
)
|
95 |
|
96 |
|
97 |
|